Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1513844
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: 嵌入式

2012-07-04 12:55:07

参考链接: 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
阅读(1204) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~