ubuntu解除root用户ssh限制

celestially98 / 2023-05-03 / 原文

1.进入ssh目录
cd /etc/ssh/

2.修改PermitRootLogin为yes
vim sshd_config

3.重启ssh服务
systemctl restart ssh

4.查看ssh服务状态
service ssh status