sshd: no hostkeys available -- exiting.
我编译时指定了路径,结果系统都提示有问题。
·
- 报错
/usr/local/sbin/sshd -t -f /usr/local/etc/sshd_config
sshd: no hostkeys available -- exiting.
- 解决步骤1
这个步骤一般就解决了。
ssh-keygen -A
- 解决步骤2
我编译时指定了路径,结果系统都提示有问题。于是编译sshd_config,直接指定KEY路径:
HostKey /usr/local/etc/ssh_host_rsa_key
HostKey /usr/local/etc/ssh_host_ecdsa_key
HostKey /usr/local/etc/ssh_host_ed25519_key
更多推荐
所有评论(0)