2013-09-26 14 views
8

Quindi sto provando a ssh nel mio UBUNTU tramite il mio PC con Cygwin su di esso. Posso WinSCP senza intoppi, ma quando ho ssh attraverso una linea di comando si tratta con questo errore:Verifica chiave host non riuscita

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
@ 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 
5d:84:de:4e:a8:81:df:22:06:23:98:34:cd:26:f5:1a. 
Please contact your system administrator. 
Add correct host key in /home/Trevor/.ssh/known_hosts to get rid of this message. 
Offending ECDSA key in /home/DIRECTORY 
ECDSA host key for HOSTNAME has changed and you have requested strict checking. 
Host key verification failed. 

così ho guardato in su e ha detto che avevo bisogno di cambiare la mia host key nella mia cartella .ssh che con ubicazione nella mia cartella home. Beh, non ce n'era uno, quindi ne ho fatto uno. Ho provato di nuovo e ho ottenuto lo stesso errore.

Qualcuno può dirmi cosa fare? Grazie mille in anticipo!

risposta

0

Quindi sembra che la tua chiave host di Ubuntu sia cambiata da quando hai eseguito l'accesso da Cygwin l'ultima volta.

Il messaggio già detto cosa fare,

cd /home/Trevor.ssh 
open know_hosts file and delete the old key of your ubunto box 
once the key is removed, ssh to your ubuntu box again 
4

provare

rm -f /home/user/.ssh/known_hosts 

o elimina la chiave incriminato dalle known_hosts

ssh-keygen -R hostname 
10

"Host verifica chiave non riuscita" mezzi che la chiave host dell'host remoto è stata modificata.

Ssh memorizza le chiavi host degli host remoti in ~/.ssh/known_hosts. Puoi modificare il file di testo manualmente e rimuovere la vecchia chiave (puoi vedere il numero di riga nel messaggio di errore) oppure utilizzare

ssh-keygen -R hostname 
Problemi correlati