Create a Strong SSH Key in Linux

SSH is a client/server protocol used for remote logins. Using cryptography for authentication, ssh provides an encrypted method to access your server. The two of the most popular methods of authentication are passwords based and public key based authentication. Public key authentication uses the cryptography system of key pairs that allows you to authenticate to your server with out having to send your password over the network.

 

This article will walk you through the steps of creating a public and private key pair on your local machine using the ssh-keygen tool.

 

Creating SSH Keys

Creating ssh key pairs using different encryption algorithms.

 

  • RSA – This algorithm uses the difficulty of factoring large numbers. A minimum of 2048 bits is recommended but 4096 is considered significantly better.
 

  • ECDSA – Stands for Elliptic Curve Digital Signature Algorithm which uses elliptic-curve cryptography
 

  • ed25519 – Fairly new algorithm which is intended to provide attack resistance comparable to quality 128-bit symmetric ciphers.
 

 

Once your key is created you can upload your Public Key to our Cloud Control panel as detailed the SSH-Key Management article below.

 

Related Articles

SSH Key Management


Share:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.