修改sshd_config
vi /usr/etc/sshd_config
PermitROootLogin 修改为yes
RSAAuthentication no yes修改为no
PubkeyAuthentication no yes修改为no
PasswordAuthentication yes no修改为yes
systemctl restart sshd
ssh取消密钥登陆,开启root登陆
最新推荐文章于 2023-11-05 19:35:17 发布
修改sshd_config
vi /usr/etc/sshd_config
PermitROootLogin 修改为yes
RSAAuthentication no yes修改为no
PubkeyAuthentication no yes修改为no
PasswordAuthentication yes no修改为yes
systemctl restart sshd