问题:我用ssh
连接服务器的时候,如果不设置密钥登陆,就会登陆失败,没有办法通过密码登陆
解决:首先设置允许通过密码登陆,设置PasswordAuthentication
为yes
设置在/etc/ssh/sshd_config
中设置PermitRootLogin
为yes
重启ssh service
sudo service ssh restart
SSH Config 允许使用root密码登陆 PermitRootLogin
最新推荐文章于 2025-03-10 10:24:11 发布
关键词由CSDN通过智能技术生成