跳转到内容
返回
Reading

vps改root登录

sudo -i

passwd

sed -i ‘s/^#?PermitRootLogin ./PermitRootLogin yes/’ /etc/ssh/sshd_config &&
sed -i ‘s/^#?PasswordAuthentication .
/PasswordAuthentication yes/’ /etc/ssh/sshd_config

systemctl restart sshd || systemctl restart ssh