1、现象

login as: root

Access denied

root@10.10.40.62′s password:
Last login: Fri Aug 24 21:19:57 2012 from 10.10.10.10
[root@node62 ~]#
2、解决

解决方法:

默认的情况下 /etc/ssh/sshd_config 是一个 全部注释得文件 去掉注释 PermitRootLogin??yes??就可以登陆了

如果不行,继续以下操作。

# vim /etc/ssh/sshd_config
注释掉
GSSAPIAuthentication yes
取消注释
UseDNS yes
# /etc/init.d/sshd restart
Stopping sshd: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?]
Starting sshd: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ ?OK ?]
如果登录慢

客户端:

vi /etc/ssh/ssh_conf?

找到?

GSSAPIAuthentication yes?

改为?

GSSAPIAuthentication no?

修改/etc/ssh/sshd_config内的 UseDns注释去掉并改为

UseDns no

如果没有就加上上面这句

首页

No Comments Now!

Be the first to comment on this entry.

留下评论

姓名(必填)
Mail (必填),(will not be published)
站点(recommended)

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URLs must be fully qualified (eg: http://www.hexiaoqun.com),and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.