求救

有人有在QNX6.4.1上 配置sshd的经验吗?

我的步骤是先用ssh-keygen 创建 private key和public key

ssh-keygen -trsa1 -f /etc/ssh/ssh_host_key
ssh-keygen -trsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -tdsa -f /etc/ssh/ssh_host_dsa_key


但是启动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.


请有成功经验的大侠 指点一下

我印象里记得要有个特殊的用户名,其他的就是文件属性要对了。

我现在用的是 root 启动/usr/sbin/sshd


调试信息:
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

我在sshd_config里面用的是

Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key