ssh is a client server application that can be used to connect to remote linux servers.
When we connect via ssh terminal to certain linux servers, it timeouts and “freezes” the terminal (doesn’t accept, doesn’t disconnect, can’t Ctrl-C to kill the ssh process or anything).
This is because the SSHD service (In the server) closes the connection if it hear noting from the client for a while, we avoid this by adding the below two line in your ssh conf file under your user (~/.ssh/config).
Open the file using any editor.
After adding the above lines, the client machine will send a signal to the server every four minuite.