解决 ubuntu 使用root登录 ssh 报错: password authentication failed

解决 ubuntu 使用root登录 ssh 报错: password authentication failed…

sudo vi /etc/ssh/sshd_config

找到PermitRootLogin without-password,改为PermitRootLogin yes

最后重启SSH服务

sudo service ssh restart

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注