Friday, February 12, 2010

Generating rsa public and private keys in linux

Open terminal and run ssh-keygen with below optional params
$ ssh-keygen -t rsa -C ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/venkat/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/venkat/.ssh/id_rsa.
Your public key has been saved in /home/venkat/.ssh/
The key fingerprint is:

Use "ssh-add path/to/my_key" If you want to change the path of the keys to store at Your public key has been saved in /home/venkat/.ssh/

To know more about passphrases just visit

After finished the above steps an hidden .ssh folder was created in that specified path containing with files id_rsa, and known_hosts. id_rsa contains private key. id_rsa_pub contains your public key.

You can use this key for your github account to manage your data from your computer.