ubuntu18启用root
版权声明:
本文为博主原创文章,转载请声明原文链接...谢谢。o_0。
更新时间:
2021-04-13 16:29:51
温馨提示:
学无止境,技术类文章有它的时效性,请留意文章更新时间,如发现内容有误请留言指出,防止别人"踩坑",我会及时更新文章
启用root
sudo passwd root
配置sshd文件
sudo vi /etc/ssh/sshd_config
修改配置
PermitRootLogin yes (默认为#PermitRootLogin prohibit-password)
PasswordAuthentication yes 允许密码登陆
重启ssh服务
service ssh restart