Install ssh server on embedded device

二次信任 提交于 2019-12-07 18:39:28

问题


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 .

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.


回答1:


You need to cross compile OpenSSH for your embedded device,Follow below steps

  1. Download OpenSSH from http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.6p1.tar.gz
  2. extract it and cross-compile it using toolchain

    ./configure --host="board architecture"

    make

  3. Copy sshd from compiled source and download it in your embedded device and run it

    /path/sshd

  4. Try to connect with your embedded device




回答2:


This may come a bit late, but may be useful for someone, but for a embedded device you may want also to consider:

  • WolfSSH
  • Dropbear
  • mbed TLS (formerly known as PolarSSL)

As far as I know all of them should work on ARM, you will probably have to cross compile as Rahul R Dhobi said.



来源:https://stackoverflow.com/questions/23218578/install-ssh-server-on-embedded-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!