线上用的openssh-6.6版本存在很大的安全漏洞,现升级到OpenSSH_8.0,在升级过程中,编译安装出现了一点问题,想要恢复之前环境,但是已经将/etc/ssh/目录下所有文件删除,无备份,只能从其他线上环境设备copy了一份/etc/ssh/目录下文件,启动报错:
[root@192.168.0.1 ssh]#systemctl restart sshd
Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.
查看报错信息
[root@192.168.0.1 ssh]#systemctl status sshd.service
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since 一 2019-09-09 16:12:04 CST; 6s ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 1502526 ExecStart=/usr/sbin/sshd -D $OPTIONS (code=exited, status=1/FAILURE)
Main PID: 1502526 (code=exited, status=1/FAILURE)
9月 09 16:1