但是启动sshd的时候 说不能加载:
Could not load host key:/etc/ssh/ssh_host_rsa_key
Disabling protocol version 2. could not load host key
sshd: no hostkeys available – exiting.
调试信息:
debug1: HPN Buffer Size: 32768
debug1: sshd version OpenSSH_5.0 QNX_Secure_Shell-20081228
debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
Could not load host key: /etc/ssh/ssh_host_rsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available – exiting.
我的文件属性是
-rw------- 1 root root 1743 Aug 26 10:41 ssh_host_rsa_key
-rw-r–r-- 1 root root 388 Aug 26 10:41 ssh_host_rsa_key.pub