第一步:关系防火墙
SuSEfirewall2 stop(解决了大多数问题)
第二步:配置sshd_config文件
service sshd restart
还需要修改ssh配置文件:
/etc/ssh/sshd_config 修改该配置文件:
# Authentication:
LoginGraceTime 120
PermitRootLogin without-password
StrictModes yes
将PermitRootLogin without-password 修改为PermitRootLogin yes,如下:
# Authentication:LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
第三步:重启sshd
service sshd restart