Psychz - Roy
Votes: 0Posted On: Oct 27, 2017 06:24:44
We will provide you guidance towards creating an SSH key on your CentOS operating system in 3 easy steps. SSH is a secure way of connecting to a remote host. Through the SSH encrypted key, you can connect to a remote host securely and efficiently.
1. Use the following command to create an SSH key pair on your system which you will later copy onto the remote server.
ssh-keygen -t
rsa
2. The system will then prompt you to enter the location in which you want to save the key. If you press enter without entering any location, it will store the key in the default path i.e "/home/current_user/.ssh/id_rsa".
3. Once the file is saved, a prompt will be displayed asking for a passphrase. The passphrase is another level of authentication and you will have to enter the passphrase every time you establish a connection. If you don't want a passphrase, leave the field empty.
The public key is now located in "/home/current_user/.ssh/id_rsa.pub" and the private key in "/home/current_user/.ssh/id_rsa".