1.安装SSH
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
arch linux
pacman -S openssh
2.开启ssh服务
- 1
3.卸载服务
- 1
- 2
- 3
- 4
注意:如果service sshd start
Redirecting to /bin/systemctl start sshd.service 启动不了。
service sshd start
Redirecting to /bin/systemctl start sshd.service
[root@localhost ~]# systemctl enable sshd.service
[root@localhost ~]# systemctl start sshd.service
[root@localhost ~]# systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-08-24 21:31:13 CST; 41min ago
Docs: man:sshd(8)
解决方案:
service sshd start
Redirecting to /bin/systemctl start sshd.service
[root@localhost ~]# systemctl enable sshd.service
[root@localhost ~]# systemctl start sshd.service
[root@localhost ~]# systemctl status sshd.service
sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-08-24 21:31:13 CST; 1 day 6h ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 39072 (sshd)
Tasks: 1
CGroup: /system.slice/sshd.service
└─39072 /usr/sbin/sshd -D
No comments:
Post a Comment