Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open
doc
Wiki
服务器root权限开放
服务器root权限开放
· Changes
Page history
Create 服务器root权限开放
authored
Dec 13, 2019
by
李克明
Hide whitespace changes
Inline
Side-by-side
服务器root权限开放.md
0 → 100644
View page @
f3dd9518
以u用户连接服务器
$ sudo passwd root
给root用户设置密码.
$ sudo nano /etc/ssh/sshd_config
找到"PermitRootLogin"把注释去除, 把后面的值改为yes, 保存.
$ sudo service sshd restart
\ No newline at end of file