generating 4096 rsa public and private key, generating the fingerprint for it and comparing it with the one at gitorious.org.
I previously had 2048-bit public and private key. Now sometime back
2096 is told to be insecure so everybody is moving to 4096-bit public
and private key. Below is the way I did :-
$ $ ssh-keygen -b 4096 -t rsa -C "shirish@debian"
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in .ssh/id_rsa4096_2013.
Your public key has been saved in .ssh/id_rsa4096_2013.pub.
The key fingerprint is:
:~/.ssh$ cat id_rsa.pub
Then did :-
$ eval "$(ssh-agent -s)"
Agent pid 10775
I already have xclip so didn't have to install it otherwise install xclip.
$ xclip -sel clip < ~/.ssh/id_rsa.pub (you are inputting the contents
of id_rsa.pub - the public key in clipboard)
I uploaded the public key to gitorious via Settings > SSH Keys or
and checked the fingerprint against the one I have.
$ ssh-keygen -lf ~/.ssh/id_rsa.pub
4096 5d:ab:44:4a:8a:ac:5f:1c:81:c8:79:3a:9d:88:df:81 shirish@debian (RSA)
and they were identical to the ones at gitorious.org
And lastly authenticated to gitorious via git :-
~$ ssh -T firstname.lastname@example.org
The authenticity of host 'gitorious.org (220.127.116.11)' can't be established.
RSA key fingerprint is 7e:af:8d:ec:f0:39:5e:ba:52:16:ce:19:fa:d4:b8:7d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitorious.org,18.104.22.168' (RSA) to the
list of known hosts.
Enter passphrase for key '/home/shirish/.ssh/id_rsa':
Welcome, shirishag75. Use git to push/pull your repositories
a. Have strong passphrase, if needed use apg to generate good passphrases.
b. Known_hosts seems to have some content apart from your public key.
Probably some sort of keypair.
Shirish Agarwal शिरीष अग्रवाल
My quotes in this email licensed under CC 3.0
EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8