Ubuntu server版如何启用root用户登录

1.sudo passwd root 以普通用户登录系统,创建root用户的密码 

2./etc/ssh/sshd_config# 在 sshd_config 文件里的 “Authentication” 部分加上以下内容PermitRootLogin yes# 完成以后退出 vim 并保存service sshd restart #

posted @ 2022-11-23 08:04  shiningrise  阅读(923)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css