CentOS 7
Sponsored Link

Configure SSH Server : Password Authentication
2014/07/09
 
Configure SSH Server to login to a server from remote computer.
[1] OpenSSH is already installed by default even if you installed CentOS with "Minimal Install", so it's not necessarry to install new packages. You can login with Password Authentication by default, but change some settings for security like follows.
[[email protected] ~]#
vi /etc/ssh/sshd_config
# line 48: uncomment and change ( prohibit root login remotely )

PermitRootLogin
no
# line 77: uncomment

PermitEmptyPasswords no
PasswordAuthentication yes
[[email protected] ~]#
systemctl restart sshd

[2] If Firewalld is running, allow SSH service. SSH uses 22/TCP port.
[[email protected] ~]#
firewall-cmd --add-service=ssh --permanent

success
[[email protected] ~]#
firewall-cmd --reload

success
Configure SSH Client : CentOS
 
Configure SSH Client on CentOS.
[3] Install SSH Client.
[[email protected] ~]#
yum -y install openssh-clients
[4] Connect to SSH server with a common user.
# ssh [[email protected](hostname or IP address)]

[[email protected] ~]#
The authenticity of host 'dlp.srv.world (<no hostip for proxy command>)' can't be established.
ECDSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:60:90:d8.
Are you sure you want to continue connecting (yes/no)?
yes

Warning: Permanently added 'dlp.srv.world' (ECDSA) to the list of known hosts.
[email protected]'s password:
# password of the user

[[email protected] ~]$
# just logined

[5] It's possbile to execute commands on remote Host with SSH like follows.
# for example, execute "cat /etc/passwd"

[[email protected] ~]$
ssh [email protected] "cat /etc/passwd"

[email protected]'s password:
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
...
...
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
Configure SSH Client : Windows
 
Configure SSH Client on Windows.
[6] Get a software which you can login with SSH from Windows clients. This example shows to use Putty. Install and start it and input your server's IP address and Click 'Open' button like follows.
[7] After succeccing authentication, it's possible to login like follows.