#3 OVH独服切换root的方法

sudo su
vim /etc/ssh/sshd_config 

在 sshd_config 文件里的 “Authentication” 部分加上以下内容

PermitRootLogin yes

完成以后退出 vim 并保存

重启 ssh 服务以应用更改

service sshd restart

直接修改 Root 用户的密码

passwd root

最終更新

役に立ちましたか?