10879 questions

12962 answers

20219 comments

26085 members

0 votes
328 views 2 comments
by
Hey,

I have been trying for a day to look for a solution on the RUT955 to be able to autossh, opening a constant ssh connection to a server on the internet. I have been able to establish normal ssh connection with no issues, and after looking on openwrt online I also found a package on https://openwrt.org/docs/guide-user/services/ssh/autossh but it is not available when I try to opkg install autossh. Also in the guide it mentions that sshtunnel would be a good alternative which I managed to install successfully but once I install it, ssh does not work anymore from the terminal, ssh complaining that a library called libcrypto is missing, and I would need to have ssh reliably working. Once this happened I factory reset the gateway to default and now ssh is again working, but I am still not closer to a solution.

Any help would be appreciated

1 Answer

0 votes
by
Hi,

Why does our default SSH client not work for you? Is there anything you specifically need that made you look for other SSH clients?

EB.
by
Hey,

Autossh reinstantiates the ssh connection with the client if it goes down or if it gets disconnected, which the normal client doesn't, so I would have always access to my gateway. So more or less autossh is a solution built on top of the normal ssh client.

All the best
by
In this case, AutoSSH is not supported by RUTOS and that's why it's not in the list of opkg packages.

What I would suggest is doing a script that would reconnect you automatically once you lose connection.

I did some googling for you and found this: https://gist.github.com/spiroski/78c8bf88e7f03add2a807a6f2dff692b

Hope this helps.

EB.