parent
ff6c5b62ae
commit
e957daf129
|
@ -120,11 +120,11 @@ UsePAM yes
|
|||
|
||||
```bash
|
||||
# 开机自运行
|
||||
systemctrl enable sshd.service
|
||||
systemctl enable sshd.service
|
||||
# 启动 sshd 服务
|
||||
systemctrl start sshd.service
|
||||
systemctl start sshd.service
|
||||
# 查看 sshd 服务状态
|
||||
systemctrl status sshd.service
|
||||
systemctl status sshd.service
|
||||
# 或(ubuntu12)
|
||||
/etc/init.d/ssh restart
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue