Could not load host key: /etc/ssh/ssh_host_dsa_key

藍色泡泡 17 三月, 2008 14:20 常見問題 靜態連結網址 引用 (0) 預覽列印
Could not load host key: /etc/ssh/ssh_host_dsa_key

錯誤訊息,原因為sshd 的 key 未產生.

連線端錯誤訊息: ssh_exchange_identi fication: Connection closed by remote host
無法連線也會產生上述訊息.
解決方式:  /etc/rc.conf 加入
sshd_enable="YES"
啟動sshd

/etc/rc.d/sshd start 
啟動sshd出現訊息:
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is: 省略
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is: 省略
Generating public/private rsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is: 省略
Starting sshd.
如此就完成了, enjoy it!!

迴響


發表迴響

發表迴響
 authimage

©2008 - Post by 藍色泡泡 (some rights reserved)