Posts

Showing posts from May, 2013

Reducing OpenSSH Login Time

We are seeing slow ssh connections from our servers. After some analysis , we found that the issue is with default SSH Configuration and not because of slow network.

We did a verbose while using ssh and can see ssh getting stucked at a particular point for all outgoing ssh connections and for incoming connections getting stucked at another point.

Following below shows ssh getting stucked for around 1 minutes at "Next authentication method: gssapi-with-mic"  for all outgoing connections from the server.

==================================================

[zaman@server ~]$ time ssh -v 192.168.2.171
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.2.171 [192.168.2.171] port 22.
debug1: Connection established.
debug1: identity file /home/zaman/.ssh/identity type -1
debug1: identity file /home/zaman/.ssh/id_rsa type -1
debug1: identity file /home/zaman/.ssh/id_dsa typ…