问题:我用ssh
连接服务器的时候,如果不设置密钥登陆,就会登陆失败,没有办法通过密码登陆
解决:首先设置允许通过密码登陆,设置PasswordAuthentication
为yes
设置在/etc/ssh/sshd_config
中设置PermitRootLogin
为yes
重启ssh service
sudo service ssh restart
微信扫一扫
问题:我用ssh
连接服务器的时候,如果不设置密钥登陆,就会登陆失败,没有办法通过密码登陆
解决:首先设置允许通过密码登陆,设置PasswordAuthentication
为yes
设置在/etc/ssh/sshd_config
中设置PermitRootLogin
为yes
重启ssh service
sudo service ssh restart
相关推荐