Question: How to prevent SSH connections from disconnecting due to inactivity when using MobaXterm client?
In most production environment setups, SSH connections are configured to get disconnect after a short period of inactivity. This can sometimes be frustrating as you may have to keep on logging in frequently. Well, you can try the workaround outlined below.
Change SSH connection settings in MobaXterm:
1. Go to the Settings menu:
2. Select Configuration:
3. In the popup window that will appear, select the SSH tab:
4. In the SSH Settings section, enable the options “SSH keepalive” and also “Fix connection issues“.
5. Press OK to save the settings:
6. Create a new SSH session and check if that fixes the problem.