Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Why do command line prompts respond poorly I am when SSH'ing into a terminal?

share|improve this question
What do you mean by "poorly": slowly or wrongly? – Agmenor Jan 26 '12 at 22:22
slow very slow.. – One Zero Jan 26 '12 at 22:25
up vote 5 down vote accepted

Is it slow only when connecting or during the SSH session, once connected?

You can diagnose the point at which it "stalls" during session startup by using the -v parameter. My hunch is that it's stalling when trying to resolve your computer's IP address. If you have control over the SSH server to which you're connecting, you could add

UseDNS no

to /etc/ssh/sshd_config to bypass the DNS resolving step. Optionally (and IMHO better/safer, but not always feasible), add your computer's IP address to the server's /etc/hosts so it resolves more quickly.

If it's slow during the session, that would sound like a lower-level networking problem, you can use ping to the server to diagnose round-trip times and see if they are OK (anything above 100-200 ms is going to start feeling sluggish for interactive use -depends on how patient you are :) ).

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.