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?
- Generate SSH Keys
- Name your SSH keys
- Enter a password (optional)
- Move the public key to the remote system
- 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”.