錯誤訊息,原因為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.如此就完成了, enjoy it!!
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.