在嵌入式设备上安装 ssh 服务器 [英] Install ssh server on embedded device
问题描述
我正在尝试通过 ssh
连接到嵌入式设备.但是,在尝试连接时,即使我尝试更改端口号,也总是收到 connection denied
消息.我已经尝试了一切来解决这个问题,从更改 /etc/ssh/
中的文件以接受特定的端口号,到 sudo iptables -A INPUT -p tcp --dport ssh-j 接受代码>.
I'm trying to connect to an embedded device through ssh
. However, when trying to connect, I always get a connection refused
message even when I try changing the port number. I've tried everything to resolve this issue, from changing the file in /etc/ssh/
to accept the specific port number, to sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
.
阅读一些评论后,我发现可能的问题之一是我的嵌入式设备上没有安装 ssh
.那么,我实际上如何在嵌入式设备上安装 ssh?我正在使用带有 ATMEL AT91SAM9G20 的 FOX G20 V 板.
After reading some comments, it came to me that maybe one of the problems is that I don't have ssh
installed on my embedded device. So, how do I infact install ssh on an embedded device? I'm working with a FOX G20 V board with an ATMEL AT91SAM9G20.
如果我已经被这个问题困扰了好几天,我将不胜感激.
I would appreciate any help since I've been stuck on this problem for several days now.
推荐答案
您需要为您的嵌入式设备交叉编译 OpenSSH,请按照以下步骤操作
You need to cross compile OpenSSH for your embedded device,Follow below steps
- 从以下位置下载 OpenSSHhttp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.6p1.tar.gz
提取并使用工具链交叉编译
- Download OpenSSH from http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.6p1.tar.gz
extract it and cross-compile it using toolchain
./configure --host="电路板架构"
./configure --host="board architecture"
制作
从已编译的源代码中复制 sshd 并将其下载到您的嵌入式设备并运行它
Copy sshd from compiled source and download it in your embedded device and run it
/path/sshd
尝试连接您的嵌入式设备
Try to connect with your embedded device
这篇关于在嵌入式设备上安装 ssh 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!