0
点赞
收藏
分享

微信扫一扫

ssh远程centos8显示Access denied

栖桐 2022-03-31 阅读 42
linux

ssh远程centos8显示Access denied

网上查了方法:
修改etc/ssh/sshd_config文件中的PermitRootLogin without-password为PermitRootLogin yes

vim  /etc/ssh/sshd_config

重启ssh

systemctl restart sshd

发现没用,最后把etc/ssh/sshd_config中的UsePAM root用 # 注释掉然后重启ssh服务就可以了

#UsePAM yes
举报

相关推荐

0 条评论