ubuntu18启用root

来源:赵克立博客 分类: Linux 标签:Linux命令发布时间:2020-12-10 15:45:40最后更新:2021-04-13 16:29:51浏览:347
版权声明:
本文为博主原创文章,转载请声明原文链接...谢谢。o_0。
更新时间:
2021-04-13 16:29:51
温馨提示:
学无止境,技术类文章有它的时效性,请留意文章更新时间,如发现内容有误请留言指出,防止别人"踩坑",我会及时更新文章

启用root

sudo passwd root


配置sshd文件

sudo vi /etc/ssh/sshd_config


修改配置

PermitRootLogin yes (默认为#PermitRootLogin prohibit-password)


2012101607586385676071.png

PasswordAuthentication yes  允许密码登陆


2104131618302495703004.png

重启ssh服务 

service ssh restart



微信号:kelicom QQ群:215861553 紧急求助须知
Win32/PHP/JS/Android/Python