按着hadoop权威指南,配置ssh无密码登录,一直不成功,求助~~~~~~

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
配置完成后,还是需要密码。调试信息就是上面的了。。

1.可以先卸载ssh,如何卸载,就是输入一两个命令。具体不清楚。
再重新装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用户的资料。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-01-11
调试信息拷贝全了吗?

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的系统。大神,求指导。

追答

请把剩余的调试信息贴出来

第2个回答  2018-07-16
如果重新做一遍还不成功,核实/root目录权限是否异常,一般为755,如果权限比这个大的话,会导致免密操作失败。
调整/root目录权限为755,删除/root下的.ssh目录然后再重新试下。
第3个回答  2013-01-11
我也是跟着那个书做的,没问题啊
要不你去网上搜一下,都是一样的
第4个回答  2013-01-11
大打算打算打打打打啊打

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网