« Back to SSH: Frequently Asked Questions

How to terminate a SSH connection that does not respond to CTRL+C

This article has last been updated at .

How to terminate a SSH connection that does not respond to CTRL+C?

Press tilde (~) followed by a dot (.) to terminate a non-responsive SSH connection.

If a SSH connection is stuck and no longer responds to CTRL+C, try using the built-in escape sequences. First send a tilde (~) followed by a dot (.). Normally this should stop the connection.

When using escape sequences, you should not see the tilde and dot. If that happens, press first enter, so the client is a state where escape sequences can be used.

Other questions related to SSH

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon

Related articles

Like to learn more? Here is a list of articles within the same category or having similar tags.