在嵌入式设备上安装SSH服务器
我正在尝试通过ssh
连接到嵌入式设备.但是,当尝试连接时,即使尝试更改端口号,我也总是收到connection refused
消息.从将/etc/ssh/
中的文件更改为接受特定的端口号,到"sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
",我已经尝试了所有方法来解决此问题.
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
- 从以下位置下载OpenSSH http://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 ="board架构"
./configure --host="board architecture"
make
从编译的源复制sshd并将其下载到嵌入式中 设备并运行它
Copy sshd from compiled source and download it in your embedded device and run it
/path/sshd
/path/sshd
尝试连接您的嵌入式设备
Try to connect with your embedded device