Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently invoke the following ssh command over my home wifi (from OSX to Ubuntu):

ssh -XYC -l my_username -c arcfour,blowfish-cbc -XC my_local_server

This works great, except during low bandwidth situations, like if I'm streaming music over the Web, while I'm coding.

In these situations, the ssh often drops, within a minute or two.

Is there a better setting or configuration that I can try over low-bandwidth situations?

share|improve this question
up vote 3 down vote accepted

When I'm concerned about dropping connection, I use "screen" to create a virtual terminal. That way if ssh goes down, my programs continue running and I can reconnect.

$ screen sudo su - userX

Make sure you get the identity of your session, so you can reconnect later:

$ screen -list

Should give you something like pid.tty.hostname

Now if your ssh session drop, you just restart it and reconnect to you virtual terminal:

$ screen -r <pid>.<tty>.<hostname>

Check out "man screen" for more gory details.

Also - I've heard good things about "mosh" (MIT Mobile Shell), but I haven't played with it yet.

share|improve this answer

There's not a whole lot you can do with just SSH. You've already enabled compression. You might consider using a shorter MAC, though I'm skeptical this will help very much. For example, I use


(man ssh_config for more details.)

But in general, SSH just doesn't do very well in situations where there are frequent packet drops. I don't know what your situation is, but maybe you can prioritize SSH traffic above your other traffic (e.g., QoS)? You may also consider something like Mosh, which should deal with the packet drop issue.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.