参考链接: http://blog.csdn.net/ctbinzi/article/details/5929800
调试过程
在PC机上
# ssh 192.168.3.110
The authenticity of host '192.168.3.110 (192.168.3.110)' can't be established.
RSA key fingerprint is 7f:c3:8a:2a:91:49:57:43:b3:3b:13:b0:c4:44:ef:1c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.3.110' (RSA) to the list of known hosts.
Connection closed by 192.168.3.110
在开发板上
# ssh 127.0.0.1
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is 7f:c3:8a:2a:91:49:57:43:b3:3b:13:b0:c4:44:ef:1c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
Connection closed by 127.0.0.1
调试: 在开发板上
# /usr/sbin/sshd -ddd //打开调试模式
//提示ssh_host_dsa_key ssh_host_rsa_key 等文件不对
解决 用下列命令生成
/usr/bin/ssh-keygen -t rsa1 -f ssh_host_key -N ""
/usr/bin/ssh-keygen -t rsa -f ssh_host_rsa_key -N ""
/usr/bin/ssh-keygen -t dsa -f ssh_host_dsa_key -N ""
# ssh -vv 127.0.0.1 //打开调试模式
提示 授权失败
# rm /root/.ssh/know_hosts
# cd /root/.ssh/
# ssh-keygen
# cat id_rsa.pub >authorized_keys
阅读(1271) | 评论(0) | 转发(0) |