SSH is a protocol used for security while connecting to a remote server. The ssh command utilizes this protocol to transfer data between the client and the host in an encrypted form.

How to set up SSH keys?

  1. Generate SSH Keys
  2. Name your SSH keys
  3. Enter a password (optional)
  4. Move the public key to the remote system
  5. Test your connection.

What is SSH key pair?

Each SSH key pair includes two keys called: a public key and a private key. Anyone who has a copy of the public key can encrypt data, but this data can only be read by a person holding the corresponding private key.

Where is SSH private key?

If you use the default name, your private key will be stored in “/root/. ssh/id_rsa”.