ssh服务常见问题及其解决办法

1 统一解决办法

执行sshd -t,这样就可以指出是哪里出问题了。

所有的服务都应该有这个测试选项,否则出错了都不知道在哪里出的问题。

2 root用户登录,密码是对的,但是报“Permission denied,please try again”

sshd_config文件中,修改PermitRootLogin no为PermitRootLogin yes。

原文地址:https://www.cnblogs.com/hustdc/p/7693586.html