Account Links: Cart | Register | Log In

Skip to content

Red Hat Knowledgebase
Red Hat Knowledgebase Search
Currently Being Moderated

How can I terminate a blocked SSH session?

Article ID: 2286 - Created on: Oct 3, 2007 6:00 PM - Last Modified:  Oct 3, 2007 6:00 PM

When the remote server becomes unavailable, connected sessions using the SSH client will hang until either the generic system TCP timeout is reached, or the value for ConnectTimeout in /etc/ssh/ssh_config.

 

In order to manually disconnect a hanging SSH session without waiting for the timeout, the user can enter the SSH client escape sequence, ~. (tilde-dot). Escape sequences must be entered directly after a carriage return, so if the first attempt fails, the user should hit the enter key and then the escape sequence again.

Tags: basics
Feedback from users like yourself is a critical factor in helping us make the Red Hat Knowledgebase as useful as possible.

More Like This

  • Retrieving data ...