administrator@ubuntu:~$ ssh localhost -vvv
OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/administrator/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/administrator/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/administrator/.ssh/id_rsa-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/administrator/.ssh/id_dsa" as a RSA1 public key
debug1: identity file /home/administrator/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: identity file /home/administrator/.ssh/id_dsa-cert type -1
debug1: identity file /home/administrator/.ssh/id_ecdsa type -1
debug1: identity file /home/administrator/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debian-3ubuntu1
debug1: match: OpenSSH_6.0p1 Debian-3ubuntu1 pat OpenSSH*
那个Incorrect RSA1 identifier是怎么回事?
用什么命令才可以?
hadoop权威指南上:
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
配置完成后,还是需要密码。调试信息就是上面的了。。
再重新装ssh,重新配置无密码访问。以下只是配置无密码访问命令:
1:ssh-keygen -t rsa -f ~/.ssh/id_rsa
这里会提示输入pass phrase,一定不要输入任何字符,回车即可
2:cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
3:ssh localhost
4:如果还要提示输入密码,请修改:
chmod 600 ~/.ssh/authorized_keys
2.直接按上面的步骤做,但是如果提示什么覆盖时,就覆盖它。
第二种方法,可能会有一些权限的问题。即你的ssh用户不能读取其他ssh用户的资料。
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/administrator/.ssh/id_rsa" as a RSA1 public key
这个应该不是错误,有可能是你的系统是version 2所以RSA1找不到。
~/.ssh/authorized_keys
文件的权限应该是600. 试试看。追问
百度提问有字数限制,调试信息不全。
修改了文件权限,还是要输入密码。
怎么查看系统是version几?我是Ubuntu 11.0的系统。大神,求指导。
请把剩余的调试信息贴出来
调整/root目录权限为755,删除/root下的.ssh目录然后再重新试下。
要不你去网上搜一下,都是一样的