New ssh keys

Submitted by Erik Wegner on Wed, 01/02/2019 - 16:58
Aufmacherbild

One of the benefits of Linux is the ability to login to a remote server and work on it as if you were on its local console. The program and technique used here is ssh (secure shell).

If you are a long time Linux user and use ssh regularly, chances are high that you created your key pair aeons ago. As a result, your key is pretty weak (only 2048 bit RSA) and long (373 characters). And here is the good news: switch to the modern elliptic curve algorithms (today's recommended key algorithm) with shorter (69 characters) public keys.

The article Upgrade Your SSH Key to Ed25519 explains it in much more detail. The short version is: run the following command to create a new key pair:

ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519