creating ssh keys to connect git hub

1.Generate ss keys

$ ssh-keygen -t rsa -b 4096 -C ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/cipher/.ssh/id_rsa):
Created directory '/home/cipher/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/cipher/.ssh/id_rsa.
Your public key has been saved in /home/cipher/.ssh/
The key fingerprint is:
The key's randomart image is:
+---[RSA 4096]----+
|X*B=+ Oo=. |
|=B+=o*.E o |
|o....=+ o o |
|o + o .o + |
|.o + . S |
|. . . . * |
| . . |
| |
| |

2.start the ssh agent in the background

;  eval "$(ssh-agent -s)"
Agent pid 20237 


3.add the ssh key to the ssh agent

ssh-add ~/.ssh/id_rsa
Identity added: /home/cipher/.ssh/id_rsa (/home/cipher/.ssh/id_rsa)

4.Add your public key to the github account accessing
key will be located at  /home/cipher/.ssh/

5.Test the ssh access to git hub account.

ssh -T
The authenticity of host ' (' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
RSA key fingerprint is MD5:16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ',' (RSA) to the list of known hosts.
Hi pawaanv! You've successfully authenticated, but GitHub does not provide shell access.

6.Clone into existing git project

 $ git clone
Cloning into 'cipher'...
Warning: Permanently added the RSA host key for IP address '' to the list of known hosts.
remote: Counting objects: 10, done.
remote: Total 10 (delta 0), reused 0 (delta 0), pack-reused 10
Receiving objects: 100% (10/10), 4.31 KiB | 4.31 MiB/s, done.
Resolving deltas: 100% (1/1), done

7.Renaming a git repo change to cipher-git

after this remote url’s nees to be updated.
old values :

$ git remote -v
origin (fetch)
origin (push)

Update it with the new remote values:
$ git remote set-url origin
$ git remote -v
origin (fetch)
origin (push)