在开启SSHD服务时报错,情况如下:#sshd
sshd re-exec requires execution with an absolute path
用绝对路径启动,也报错,情况如下:
#/usr/sbin/sshd
Could not load host key: /etc/ssh/ssh_host_key
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available — exiting
解决过程:
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
#/usr/sbin/sshd

最新评论
15 周 4 天 前
15 周 4 天 前
15 周 4 天 前
15 周 4 天 前
15 周 4 天 前
16 周 1 天 前
25 周 4 小时 前
31 周 1 天 前
34 周 2 天 前
1 年 6 天 前