linux中ssh登入Permanently added (RSA) to the list of known hosts問題解決 用使用者名稱+密碼的方式登入出現以下問題:1[root@www]# ssh admin@xxx.xxx.xxx.xxx2The authenticity of host 'xxx.xxx.xxx.xxx can't be established.3RSA key fingerprint is f4:d0:1a:9c:09:65:78:71:25:33:79:c2:d5:aa:0b:c1.4Are you sure you want to continue connecting (yes/no)? no5Host key verification failed.6[root@www]#如果是直接輸入yes1[root@www]# ssh admin@xxx.xxx.xxx.xx2The authenticity of host 'xxx.xxx.xxx.xxx' can't be established.3RSA key fingerprint is f4:d0:1a:9c:09:65:78:71:25:33:79:c2:d5:aa:0b:c1.4Are you sure you want to continue connecting (yes/no)? yes5Warning: Permanently added 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts.6Permission denied (publickey,gssapi-with-mic,password).7[root@www]#一、可以把~/.ssh/known_hosts清除二、如果還是不行修改/etc/ssh/sshd-config檔案,將其中的PermitRootLogin no修改為yes,PubkeyAuthentication yes修改為no,AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉,PasswordAuthentication no修改為yes就可以了。三、如果還是有問題,那顆一用下面的方式解決:用命令 ssh -l username hostname1Are you sure you want to continue connecting (yes/no)?1、這個是ssh安全認證是的一個RSA認證。此處必須選擇yes才能串連。第一次yes後,他會詢問你是否永久把這個RSA認證加入本地,選擇yes後,以後不會再出現提醒。每次登陸只需要輸入密碼即可。2、也可以不用輸入1中的yes,但是需要修改本機配置。1 /etc/ssh/ssh_config 中的2# StrictHostKeyChecking ask 改成3 StrictHostKeyChecking no