文章出自http://www.2cto.com/os/201307/227199.html linux中ssh登录Permanently added (RSA) to the list of known hosts问题解决 用用户名+密码的方式登录出现以下问题: 1 [root@www]# ssh admin@xxx.xxx.xxx.xxx 2 The authenticity of host 'xxx.xxx.xxx.xxx can't be established. 3 RSA key
Nov 3 01:22:06 server sshd[11879]: Failed password for root from 123.127.5.131 port 38917 ssh2Nov 3 01:22:17 server sshd[11880]: Received disconnect from 123.127.5.131: 13: The user canceled authentication. Nov 3 03:15:08 server sshd[17524]: pam_un
原因:有可能是客户端在登录服务器时,服务器会先根据客户端的IP根据DNS去查找主机名,如果客户端的DNS服务器出现问题或者主机名有问题,就会卡一段时间 解决办法: # vi /etc/ssh/sshd_config 修改为 UseDNS=no # vi /etc/ssh/sshd_config 修改为 GSSAPIAuthentication no service sshd restart重启ssh服务
在本地的客户端SSH到远程服务端时,每次都要输入用户名和密码,如果不想每次都输入密码则可以使用以下操作. 首先在本地的客户端输入 ssh-keygen [keysystem@localhost ~]$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/keysystem/.ssh/id_rsa): Created directory '/home/keysys