4.Then we want to create the unique SSH public key. Type the following code in the terminal.
ssh-keygen -t rsa -C "firstname.lastname@example.org"
# Creates a new ssh key using the provided email # Generating public/private rsa key pair. # Enter file in which to save the key (/c/Users/you/.ssh/id_rsa): [Press enter]
5.Now you need to enter a passphrase.
# Enter passphrase (empty for no passphrase): [Type a passphrase] # Enter same passphrase again: [Type passphrase again]
Which will give the message:
# Your identification has been saved in /c/Users/you/.ssh/id_rsa. # Your public key has been saved in /c/Users/you/.ssh/id_rsa.pub. # The key fingerprint is: # 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db email@example.com Now go to ~/.ssh folder and copy your id_rsa.pub content into account administration on github.com … and check if everything works
Type the code in terminal:
ssh -T firstname.lastname@example.org
It asks for the confirmation message: The authenticity of host ‘github.com (126.96.36.199)’ can’t be established. # RSA key fingerprint is 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)? Then enter yes: It shows the message: # Hi username! You’ve successfully authenticated, but GitHub does not # provide shell access.
Finally you have successfully added your Github account in your Linux. More git functions will be continued on Next Page.