歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

linux中ssh登錄Permanently added (RSA) to the list of known hosts問題解決

linux中ssh登錄Permanently added (RSA) to the list of known hosts問題解決   用用戶名+密碼的方式登錄出現以下問題: 1 [root@www]# ssh [email protected] 2 The authenticity of host 'xxx.xxx.xxx.xxx can't be established. 3 RSA key fingerprint is f4:d0:1a:9c:09:65:78:71:25:33:79:c2:d5:aa:0b:c1. 4 Are you sure you want to continue connecting (yes/no)? no 5 Host key verification failed. 6 [root@www]# 如果是直接輸入yes 1 [root@www]# ssh [email protected] 2 The authenticity of host 'xxx.xxx.xxx.xxx' can't be established. 3 RSA key fingerprint is f4:d0:1a:9c:09:65:78:71:25:33:79:c2:d5:aa:0b:c1. 4 Are you sure you want to continue connecting (yes/no)? yes 5 Warning: Permanently added 'xxx.xxx.xxx.xxx' (RSA) to the list of known hosts. 6 Permission 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 hostname 1 Are 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  
Copyright © Linux教程網 All Rights Reserved