You can configure SSH with the following commands at a Linux terminal or shell.
- Run the following command at a Linux terminal or shell to generate a public key on your
primary machine. Though not required, it is a good practice to enter (and
remember) a private key phrase when prompted for maximum
ssh-keygen -t rsa
- Append the contents of your publish key to an
authorized_keys file on the remote machine. Change
remote_serverto a valid host name:
cat ~/.ssh/id_rsa.pub | ssh remote_server “cat - >> ~/.ssh/ authorized_keys”
- Run the following command to prompt for your private key pass phrase, and enable key
You should now be able to ssh to any machine without typing a password. The first time you access a new machine, it prompts you for a password. It does not prompt upon subsequent access.