Sunday, July 13, 2014

Cara Mengatasi Error saat Meremot SSH

Setelah selesai installasi Debian 7 pada komputer server . Nahhh rencananya saya mau konfigurasi lewat pc lain , otomatis saya harus meremot ssh server yang sudah saya install tadi , setelah saya coba ehhh ternyata error saat meremot ssh server begini nii sedikit solusi nya :

  • IP server yang akan di remot 192.168.12.20

# sudo su
# password
# ssh root@192.168.12.20
Hasilnya kaya gini :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
56:f4:43:6c:d9:3d:32:95:3e:10:86:20:b8:4a:5a:54.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:2
  remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.12.20
ECDSA host key for 192.168.12.20 has changed and you have requested strict checking.
Host key verification failed.
root@kpliklaten02-ThinkCentre-M70e:~# 


  • Tenyata caranya mudah kita tinggal menghapus izin remot yang lebih dahulu 
# rm -f /root/.ssh/known_hosts
 Atau bisa juga
# ssh-keygen -R 192.168.12.57

  • Selesai , tinggal coba di remot ulang 
 

No comments: