正文
Ubuntu SSH root 登录 Permission denied 错误
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
问题:
$ ssh root@40.125.21.75
root@40.125.21.75's password:
Permission denied, please try again.
解决方式,编辑40.125.21.75
服务器中的vim /etc/ssh/sshd_config
配置文件:
PermitRootLogin without-password--改为PermitRootLogin yes
然后重启 SSH:
$ sudo service ssh restart
参考资料:
- permission denied for root@localhost for ssh connection