Someone over on reddit linked to a good post on properly closing a frozen SSH session.

It also includes other useful escape sequences.

Securing SSH on Linux Part 2

In this part I will explain how to further improve the server’s security by replacing traditional passwords with public key authentication. Before deciding to follow this tutorial please consider the following problem: While replacing passwords with private/public key pairs is an enormous improvement in security it also requires specially preparing your workstation for logging into…

Continue reading →

Securing SSH on Linux Part 1

Update: Rather embarrassingly I forgot to include restarting sshd. Also I have edited my formatting of the commands shown. When you first set-up your Linux VPS the chances are that you are told to log in as ‘root’ directly, possibly even using a password like ‘123456’! The steps in this two part tutorial should be…

Continue reading →