|
|
以u用户连接服务器
|
|
|
|
|
|
```
|
|
|
$ sudo passwd root
|
|
|
```
|
|
|
给root用户设置密码.
|
|
|
|
|
|
```
|
|
|
$ sudo nano /etc/ssh/sshd_config
|
|
|
```
|
|
|
找到"PermitRootLogin"把注释去除, 把后面的值改为yes, 保存.
|
|
|
|
|
|
$ sudo service sshd restart |
|
|
\ No newline at end of file |
|
|
```
|
|
|
$ sudo service sshd restart
|
|
|
``` |
|
|
\ No newline at end of file |