Troubleshoot long respond times with Secure Shell communication

SSH taking too long to respond?

Disable Group Support System (GSS) login, to do this follow this:

  1. Log in to the remote server as usual
  2. Open the SSH configuration (nano /etc/ssh/sshd_config)
  3. Once inside look for GSS authentication (Ctrl+W, gss, enter)
  4. Look for the line that says GSS authentication and add a “#” in front of it
  5. Save and close (ctrl+X, Y, enter)
  6. Restart the ssh service (service sshd restart or service ssh restart or /etc/init.d/sshd restart or /etc/init.d/ssh restart)

Explanation: SSH can use several different login schemes, password and username, keys, pam/kerberos, gss, etc

What it does is that when you connect to the server it goes one by one trying to see what works, the last one is username and password which is the most regular one, the authentication that takes the most time is with the gss api, since it’s not being used, it can be disabled, thus increasing the speed login works.

  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

Direct emailing

Direct email delivery is disabled on the network for server packaged ordered after 5/15/2012....

Check and open ports in CentOS / Fedora / Redhat

  If you want to open or close a port for a Linux firewall you have to edit the rules in the...

Get started with your Control Panel (Webmin/cPanel)

  Webmin: Webmin is disabled by default, you will have to enable it: - Access the server via...

Run File System Check in Linux

  # fsck fsck is used to check and optionally repair one or more Linux file systems....

How to restart Webmin

Here is a little helper if your Webmin does not respond. Just run this command from the...