Problem: When using the terminal on a Linux or MAC system and leave it idle for some time, the terminal will get hung due to a timeout issue.
Solution You can solve this problem by adding a config file to your
~/.ssh directory. Use the following steps for the configuration.
Create a Config file in you
Add the following configuration to the file and save it
Change the file permission to 600
chmod 600 ~/.ssh/config