BT5需要设置一下,才可以使用SSH
root@bt:~# /etc/init.d/ssh restart
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
* Restarting OpenBSD Secure Shell server sshd
解决方法是:
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key // 密码输入时直接敲回车设置为空
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key // 密码输入时直接敲回车设置为空
重启ssh
root@bt:~# /etc/init.d/ssh restart
* Restarting OpenBSD Secure Shell server sshd [ OK ]