5

What options can be used on Linux' OpenSSH Server and the ssh command itself (or their config files) to make ssh most reliable on flaky connections (eg. long distance WiFi)?

Is it useful to tune the ssh configuration, or are there better options tuning Linux TCP parameters?

1
  • 2
    There really needs to be an answer to this. Using something other than SSH (like mosh) is not an option for most people. Commented Oct 6, 2017 at 16:08

3 Answers 3

3

Mosh is a replacement for SSH. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.

3
  • 2
    As mosh is an replacement, it is not always available nor installed by default. So I just wonder what can be done by tuning OpenSSH.
    – dronus
    Commented Oct 16, 2016 at 12:56
  • 2
    Also it seems mosh won't support "popular" ssh options, like -L and -R tunneling, and as such won't replace SSH as used by other tools. It may however support basic usage, eg. as of rsync, one have to try out...
    – dronus
    Commented Oct 16, 2016 at 13:04
  • 1
    While I always appreciate other options, I'm getting tired of hearing mosh, which is incompatible with ssh, as the solution. Somewhere we need to have a discussion about the configuration options for ssh without having the subject changed. Not your fault. But notice how as of right now there are no on-topic answers. So is the case with all Google results. Commented Oct 6, 2017 at 16:16
0

I've had fantastic luck with autossh* and tmux when working over troublesome connections. Something like this:

autossh remotehost -t tmux att -t session-name

http://www.harding.motd.ca/autossh/

-1

I realize this is an old question. I use mosh mostly but sometimes I like to have gvim working remotely.

I have not tried this yet http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html specifically the section on Resilient Connections

1
  • 1
    “I have not tried this yet” so why do you propose it?
    – Toto
    Commented Oct 21, 2022 at 15:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .