ssh secure shell client登录时提示too many authentication failures

对于新安装的ubuntu系统,用root身份使用SSH secure shell client 远程登录时总会出现重复输入密码,最后提示too many authentication failures…如下图

ssh secure shell client登录时提示too many authentication failures
解决办法如下:

将sshd_config文件的部分配置修改成如下所示:(vim /etc/ssh/sshd_config)

PermitRootLogin yes

PubkeyAuthentication no

PasswordAuthentication yes

UseLogin yes

最后重启sshd服务(service sshd restart)就可以了。