小吴先生
小吴先生
首页 有卡小号

root用户远程登录报错Permission denied, please try again.解决方法

  • 作者: admin
  • 时间: 2019-12-11
  • 分类: 基础运维

确保密码正确的情况下,出现以下错误

➜  ~ ssh root@123.123.123.123 -p 2222
root@123.123.123.123's password:
Permission denied, please try again.

1.修改123.123.123.123的/etc/ssh/sshd_config配置文件,如下:

vim /etc/ssh/sshd_config
PermitRootLogin yes

2.重启

systemctl restart sshd

标签: none

  • 上一篇: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).错误解决方法
  • 下一篇: autoreconf: failed to run aclocal: No such file or directory 错误的解决方法
© 2025 小吴先生. 由 Typecho 强力驱动.
冀ICP备18000844号