Ubuntu 20.04 root 用户启用


一、修改root用户名密码

ubuntu@VM-0-11-ubuntu:~$ sudo passwd root
New password:
Retype new password:
passwd: password updated successfully
ubuntu@VM-0-11-ubuntu:~$ su - root
Password:
root@VM-0-11-ubuntu:~#

二、使能root用户ssh功能

root@VM-0-11-ubuntu:~# vi /etc/ssh/sshd_config

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM