电脑主机利用ssh服务远程控制开发板

来源:互联网 发布:协同过滤算法java代码 编辑:程序博客网 时间:2024/09/21 09:25


硬件环境:

电脑主机 -  Ubuntu 14.04 lts

开发板 -  Ubuntu 12.04


两个前提:

1.电脑主机和开发板都应该安装上ssh服务,安装命令为:

  sudo apt-get install openssh-server



2. 电脑主机和开发板连接到一个局域网


然后在电脑主机中输入

ssh [板子用户名]@[板子IP地址]


比如我板子的用户名为linaro ip地址为 192.168.1.1

则:

ssh linaro@192.168.1.1



接着会提示输入板子的密码


如果提示:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b6:0c:41:43:60:79:eb:05:9e:c9:72:1d:a0:41:9a:50.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:5
.....


则是因为你的known_hosts里面有之前的连接,删除即可,具体方式:

vim /上面报错提示的路径/.ssh/known_hosts 


删除和IP地址有关的内容即可。




0 0