Skip to content

Generate new SSH public/private key pair

Most common way
$ ssh-keygen

Key pair will be generated in the following location
~/.ssh

File names
Private key - id_rsa
Public key  - id_rsa.pub

Last update: February 16, 2023