虚拟机root用户登录,输入密码没有问题,但是xshell登录,输入同样的密码就是不行...

虚拟机root用户登录,输入密码没有问题,但是xshell登录,输入同样的密码就是不行。是为什么。

vi/etc/ssh/sshd_config

#Compression delayed

#ClientAliveInterval 0

#ClientAliveCountMax 3

#ShowPatchLevel no

#UseDNS yes

#PidFile /var/run/sshd.pid

#MaxStartups 10

#PermitTunnel no

#ChrootDirectory none


# no default banner path

#Banner /some/path


# override default of no subsystems

Subsystemsftp/usr/libexec/openssh/sftp-server

#AllowUsers wsm

把标红的一行注释掉

把下面红框的也注释掉

虚拟机root用户登录,输入密码没有问题,但是xshell登录,输入同样的密码就是不行...

service sshd restart

这样修改之后,重新xshell登录就没有问题了。


本文转自aaa超超aaa 51CTO博客,原文链接:http://blog.51cto.com/10983441/1762665