Passwordless SSH connections using a RSA key

In the command line. Build your user ID or called keygen
ssh-keygen -t rsa
Then after you make a RSA key then trasfer it to the server or “host” you want to access.
The hostname will be the domain or IP address of the computer you want to copy the key to. “The computer your trying to access without a SSH password.

The username is the user you are using to log in to the computer your trying to connect to.

ssh-copy-id -i ~/.ssh/id_rsa.pub username@hostname

After pressing enter at this command you will be asked once for the password for the remote computer. This allows the key to be copied to the remote computer.

After the key has been copied try to connect to the remote computer.

ssh username@hostname

If everything worked right you will be logged in to your remote server without a password.