How to generate a pair of SSH private key and public key pairs? On Linux, you can generate one first by$ ssh-keygen -t rsaBy default on Linux, the key pair is stored in `~/.ssh` named `id_rsa` and `id_rsa.pub` for the private and public key.Related posts:How to generate a pair of RSA private and public key in Linux? How to generate a CSR from a private SSL key? How to decrypt a password protected RSA private key? How to choose the key used by SSH for a specific host? How to generate a password in Shell on Linux? How to make lftp to use key for authentication for sftp on Linux? utop key bindings / key shortcuts How to hide my private IP in Email header in Thunderbird?