Computer man
OpenSSH

Configure SSH Server to login a server from remote computer.

OpenSSH is already installed in most of linux distribution

[root@Server ~]# vi /etc/ssh/sshd_config
# line 38: uncomment and change (prohibit root login remotely)
PermitRootLogin no
[root@Server ~]# systemctl restart sshd

If Firewalld is running, allow SSH service

[root@Server ~]#firewall-cmd --add-service=ssh --permanent
success
[root@Server ~]#firewall-cmd --reload
success

Configure SSH Client:-


Install SSH Client

[root@client ~]# yum -y install openssh-clients

Connect to SSH server

[root@client ~]# ssh amy@server.example.com
The authenticity of host 'server.example.com ()' can't be established.
ECDSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:90:70:e8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server.example.com' (ECDSA) to the list of known hosts.
amy@server.example.com's password: # password of the user
[amy@server ~]$ # just logined
Please email me if you face any issue.

Name:

Email:

Comments:

views
PHP Hits Count