SSH enables you to securely log in to a remote host. There are times that the log in process is slow or simply is just not fast enough for you. This really adds up if you need to remotely log in many time a day as part of your daily job.

There are a few ways that you can speed up authenticating to a remote SSH server which you can implement from both the client and server side.

Steps to speed up SSH authentication:

  1. Disable reverse DNS lookup for SSH server.

    SSH server could be configured to perform a reverse DNS lookup of incoming connection which could delay the log in process.

  2. Disable GSSAPI authentication on SSH server.

    SSH server might have to check if you're using GSSAPI authentication even if you're conecting via other authentication method.

  3. Share and reuse SSH connection via multiplexing.

    multiplexing allows sharing and reuse of SSH connection which could significantly speed up remote SSH server access.

  4. Manually specify authentication method from SSH client.

    SSH client will try multiple authentication methods unless manually specified.

  5. Use passwordless authentication method.

    Not having to manually key in username and password during log in will speed up SSH authentication.

Discuss the article:

Comment anonymously. Login not required.