Private site

请输入访问密码

跳转到内容
lyrnox's blog
  • 文章
  • 关于
  • 搜索
返回

vps改root登录

Feb 1, 2026
|

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



上一篇文章
认知差的力量
下一篇文章
梦境之兜风