Friday, July 17, 2009

remote ssh rewel

Error remote ssh;

sulton@sulton-desktop:~$ ssh 192.168.50.33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
b3:34:4f:ea:db:94:XX:XX:XX:XX:XX:XX:XX:XX:XX
Please contact your system administrator.
Add correct host key in /home/sulton/.ssh/known_hosts to get rid of this message.
Offending key in /home/sulton/.ssh/known_hosts:1
RSA host key for 192.168.50.33 has changed and you have requested strict checking.
Host key verification failed.

Mungkin anda pernah mendapat Error seperti diatas. Solusinya kira-kira seperti ini:


Masuk ke directori .ssh
#cd /home/sulton/.ssh

anda akan menemukan file known_hosts

Anda backup file tersebut jika anda merasa akan membutuhkannya lagi, atau rm jika anda langsung pengen menghapusnya, :)

backup:
#cp known_hosts known_hosts.backup

Hapus:
#rm known_hosts

Setelah itu anda login seperti biasa,
sulton@sulton-desktop:~$ ssh 192.168.50.33
The authenticity of host '192.168.50.33 (192.168.50.33)' can't be established.
RSA key fingerprint is b3:34:4f:ea:db:94:29:XX:XXX:XXX:XXX:X:X:X:X
Are you sure you want to continue connecting (yes/no)?

Ketik yes
masuk deh :)