Fedora

How to create an SSH key?





To create an SSH key you need to have OpenSSH installed on your system. Generally, OpenSSH comes with the Fedora.Anyways you can use

$ yum install openssh

to install it

Once it is installed, do the following :

$ ssh-keygen -t rsa

You will be prompted to enter the location to store the ssh key files, press Enter for default. The default location is

~/.ssh/id_rsa

Then you will be asked to enter the passphrase. Be careful, choose a passphrase that you can remember, otherwise you will not be able to recover your key. In that case you have to create a new key.

By default, your new private and public keys will be stored in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub, respectively.

You can share the public key openly, but keep the private key a secret. The public key is used by server administrators to grant you access.

For more details, visit

http://www.openssh.com/