Skip to Content

Slowness while doing ssh

How to resolve the issue with Slowness when using SSH?


Overview: This article describes on how to troubleshoot the issue with SSH slowness while logging into your remote servers.


If you are facing any slowness while doing SSH, check the following steps:-

Step 1: Make sure that you are not facing any network issues.

Step 2: Try to SSH from the jump server as well as from the remote servers manually and confirm whether the issue still persists.

Step 3: If the issue is persisting, check the size of the /var/log/btmp. You can check that by running the following command on the remote server.

root@remoteserver:~# ls -lah /var/log/btmp

If the size of /var/log/btmp is high then truncate the logs in /var/log/btmp. You can truncate the logs by running the following command on the remote server.

root@remoteserver:~# > /var/log/btmp


Related Articles:

Truncate the SSH session logs

Issue with log retain duration