FREQUENTLY ASKED QUESTIONS (Linux)
Q. Cannot connect to remote linux computer via SSH (Secure shell) getting Error message below
[root@server ~]# ssh 192.168.10.50
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
ac:c2:d2:47:81:14:39:f0:3f:ed:99:18:59:f:80:a1.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 192.168.10.50 has changed and you have requested strict checking.
Host key verification failed.
How to Fix this ?
You may get this error message because of the RSA host key had changed (sometimes the ipaddress of the SSH Server has changed or you installed a new Operating system with the same ip address).
You should fix this error by correcting/deleting the host key of the server which you tried to connect via SSH.
Delete the RSA host key for 192.168.10.50
You can delete the saved SSH RSA key for the destination SSH server (192.168.10.50)
[root@server ~]# vi ~/.ssh/known_hosts
# And you can delete the line starts with the destination SSH server ipaddress/hostname.
(Move the curser to the ipaddress and press "d" twice to delete RSA Host key)
And you have all done, now save the file.
Now Connect to the SSH server
[root@server ~]# ssh 192.168.10.50
The authenticity of host '192.168.10.50 (192.168.10.50)' can't be established.
RSA key fingerprint is ac:c2:b2:d7:81:f4:39:80:3f:ed:a9:18:59:1f:80:a1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.50' (RSA) to the list of known hosts.
root@192.168.10.50's password:
[root@webserver ~]#
Q. Cannot connect to remote linux computer via SSH (Secure shell) getting Error message below
[root@server ~]# ssh 192.168.10.50
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
ac:c2:d2:47:81:14:39:f0:3f:ed:99:18:59:f:80:a1.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 192.168.10.50 has changed and you have requested strict checking.
Host key verification failed.
How to Fix this ?
You may get this error message because of the RSA host key had changed (sometimes the ipaddress of the SSH Server has changed or you installed a new Operating system with the same ip address).
You should fix this error by correcting/deleting the host key of the server which you tried to connect via SSH.
Delete the RSA host key for 192.168.10.50
You can delete the saved SSH RSA key for the destination SSH server (192.168.10.50)
[root@server ~]# vi ~/.ssh/known_hosts
# And you can delete the line starts with the destination SSH server ipaddress/hostname.
(Move the curser to the ipaddress and press "d" twice to delete RSA Host key)
And you have all done, now save the file.
Now Connect to the SSH server
[root@server ~]# ssh 192.168.10.50
The authenticity of host '192.168.10.50 (192.168.10.50)' can't be established.
RSA key fingerprint is ac:c2:b2:d7:81:f4:39:80:3f:ed:a9:18:59:1f:80:a1.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.50' (RSA) to the list of known hosts.
root@192.168.10.50's password:
[root@webserver ~]#
Still you cannot connect to the SSH server ?
Try Deleting the entire RSA host key of all the knows hosts. Dont worry the "known_hosts" file create and configured automatically when you connect to a new SSH server every time. And the RSA host key will be saved safe.
[root@server ~]# rm ~/.ssh/known_hosts
[root@server ~]# ssh 192.168.10.50
1 comments:
wonder full command this is the power of common man
Thanks you soooo much
Post a Comment