How to generate and use key pairs with ssh-keygen

In this story, I explain how to generate and use RSA and Ed25519 key pairs with ssh-keygen.

SSH keys are based on :

  • a public part: it can be placed on servers,
  • a private part: it is kept on you or on your laptop.

To view the IP address of your host:

ip a

or :

hostname -I

Generate a RSA key

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.