linux中ssh登入Permanently added (RSA) to the list of known host

來源:互聯網
上載者:User

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 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.