Top causes of slow ssh logins

Posted by Peter Lyons on Super User See other posts from Super User or by Peter Lyons
Published on 2010-07-22T07:02:00Z Indexed on 2012/06/29 9:18 UTC
Read the original article Hit count: 185

Filed under:
|
|
|
|

I'd love for one of you smart and helpful folks to post a list of common causes of delays during an ssh login. Specifically, there are 2 spots where I see a range from instantaneous to multi-second delays.

  1. Between issuing the ssh command and getting a login prompt and
  2. between entering the passphrase and having the shell load

Now, specifically I'm looking at ssh details only here. Obviously network latency, speed of the hardware and OSes involved, complex login scripts, etc can cause delays. For context I ssh to a vast multitude of linux distributions and some Solaris hosts using mostly Ubuntu, CentOS, and MacOS X as my client systems. Almost all of the time, the ssh server configuration is unchanged from the OS's default settings.

What ssh server configurations should I be interested in? Are there OS/kernel parameters that can be tuned? Login shell tricks? Etc?

© Super User or respective owner

Related posts about linux

Related posts about ssh