Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 4 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
add comment

Your Answer

 
discard

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.