`
forcer521
  • 浏览: 27869 次
  • 来自: 北京
社区版块
存档分类
最新评论

How to resole "ssh localhost" failed when config Hadoop

阅读更多

有三种情况:

1. ssh localhost
error: connection refused at port 22

solution:

use root user to edit /etc/ssh/sshd_conf add:

ListenAddress 0.0.0.0:22

and

/etc/init.d/sshd restart


2. ssh localhost
error: Permission denied (publickey,gssapi-with-mic)

solution:

disable gssapi in /etc/ssh/sshd_conf:

GSSAPIAuthentication no

and

/etc/init.d/sshd restart


3. ssh localhost
error: Permission denied (publickey)
when view /var/log/secure
Authentication refused: bad ownership or modes for file /home/adwiser/.ssh/authorized_keys

solution:

Check there permissions on the ~/.ssh directory should be 700,
and the authorized_keys file should be 600

so execute shell:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

0
0
分享到:
评论
2 楼 forcer521 2011-10-21  
不是,只是把记在自己记事本上的发上来了,防止丢失:)
1 楼 tomfish88 2011-10-10  
自动发帖么?

相关推荐

Global site tag (gtag.js) - Google Analytics