Ssh
無法連接 ssh /root/.ssh/known_hosts’:沒有這樣的文件或目錄
我無法使用 ssh 連接到我的伺服器。我已經開始使用 ssh 進行會話,但我知道如果我退出此會話,我將無法再次連接到我的伺服器。
ssh root@genese.com @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 07:fe:8f:12:83:09:ce:87:ec:60:9d:75:b4:d2:04:12. 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:3 Password authentication is disabled to avoid man-in-the-middle attacks. Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks. Permission denied (publickey,password). ssh -o StrictHostKeyChecking=no root@genese.com @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 07:fe:8f:12:83:09:ce:87:ec:60:9d:75:b4:d2:04:12. 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:3 Password authentication is disabled to avoid man-in-the-middle attacks. Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks. Permission denied (publickey,password).
我嘗試:
rm /root/.ssh/known_hosts rm: cannot remove `/root/.ssh/known_hosts': No such file or directory ssh-keygen -R genese.com ssh-keygen: /root/.ssh/known_hosts: No such file or directory
該
known_hosts
文件位於客戶端上。你確定你知道你在做什麼嗎?