How to generate a pair of SSH private key and public key pairs? Posted on Jul 16, 2019 by Q A In QA, Tutorial How to generate a pair of SSH private key and public key pairs? On Linux, you can generate one first by $ ssh-keygen -t rsa By default on Linux, the key pair is stored in `~/.ssh` named `id_rsa` and `id_rsa.pub` for the private and public key. Read more: Generating RSA Private and Public Key Pair in Go Lang? Generating a Pair of RSA Private and Public Keys in Linux using OpenSSL How to generate a CSR from a private SSL key? Decrypting a Password Protected RSA Private Key Private Key Sharding: A Technical Guide utop key bindings / key shortcuts How to choose the key used by SSH for a specific host? How to generate a password in Shell on Linux?