If you don't want to reenter your passphrase every time you use your SSH key, you can add your key to the SSH agent, which manages your SSH keys and remembers your passphrase. If you're unsure whether you already have an SSH key, check for existing keys.
If you don't already have an SSH key, you must generate a new SSH key. $ openssl genrsa -out private.pem -passout file:password.txt 2048 After Generating RSA private key, 2048 bit. I am trying to generate a secure private and public key with openssl for use with my cloud hosting provider but when I did that the public key output from openssl was not recognized. Then click Generate, and start moving the mouse within the Window. To create a new key pair, select the type of key to generate from the bottom of the screen (using SSH-2 RSA with 2048 bit key size is good for most people another good well-known alternative is ECDSA). While Encrypting a File with a Password from the Command Line using OpenSSL is very useful in its own right, the real power of the OpenSSL library is its ability to support the use of public key cryptograph for encrypting or validating data in an unattended manner (where the password is not required to encrypt) is done with public keys.