How to manage an idle ssh connection ?

  • HOME
  • >
  • LINUX
  • >
  • How to manage an idle ssh connection ?
Last Updated: 

Idle ssh connections can occure because of a tcp timeout somewhere on the network, a bad command that you executed, incorrect keepalive settings, and so on. In such event, may just kill your terminal and start a new one. Though, another easy option is to use the exit sequence ~+. (tilde and a period). This sequence would terminate the idle connection and allow you to reconnect from the same terminal.

Related linux posts that you may like
What are the Differences Between Vi and Vim?
Review of the main differences between the Vi/Ex POSIX standard and the Vim implementation.
sudo: no tty present and no askpass program specified
Learn what is askpass and how to solve the 'sudo: no tty present and no askpass program specified' error when using sudo to execute a command.
What is the Bash Null Command?
Learn about the Bash null command, also known as the POSIX shell colon command. This post cover concrete use cases and pitfalls to avoid.