CyberKeeda In Social Media

How to SSH and authenticate to github central repository

How to authenticate your computer to pull, push, fetch, commit to your central github account.

  • Generate your SSH-Keys.
cybeerkeeda@Linux-Maniac:~ ssh-keygen
Provide the details that it's asking from you, these details are optional you can even hit enter every time.
Generating public/private rsa key pair.Enter file in which to save the key (/home/cyberkeeda/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /home/cyberkeeda/.ssh/id_rsa.Your public key has been saved in /home/cyberkeeda/.ssh/ key fingerprint is:SHA256:j6S60jQqGdhgaikn7W37h4//fWIxfuuPn8/O8hxxeTBeS8 cyberkeeda@Linux-ManiacThe key's randomart image is:+---[RSA 2048]----+|              . .||               +o||               ++||  .   .       E =|| o o o .S      ..||o o = .o.o   o . || + + ...o.... * .||o o ..  .o. .=.*o|| . .o. ++ ...o*B%|+----[SHA256]-----+

So your key has been generated, now we will be using the public key  /home/cyberkeeda/.ssh/ kto authenticate your computer.

  • Copy your key.

cybeerkeeda@Linux-Maniac:~ cat /home/cyberkeeda/.ssh/
 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxzpbwBvPJ3LHJQpfxff860P4jKISitz+MueO2DFih9y97vldDhC9Ih0Q6Enw6J0YA9Z9IN+aSR7oBhwVgJGmYp1MqoS7NRuJ+EBo6ggl4ff9SJJznZMAN1/5xXGgv8lMs0KxV14aCn0KZUej2gJnkACSEilYRjU4/Fxsf+PSRNgABkQ0aFM8XodFZtlX5oTdtkkF9A16DpCGslkdCDgWR0MCxs5nB+MOIEnTTRfIPqxq7JgieVblCdW7O+7Lo8ugb0/wwv6I1AXH5Nf6h38uO3tZuM0ipc338dkTO94iCAp8129EOBqH74+tOey54WjS7m8eAtOs2W+JpUMI873qp cyberkeeda@Linux-Maniac

  • Login to your github account.
  • Click on Settings from from the drop down menu.

  • Click on SSH and GPG Keys
  • Click on SSH Key in order to add your ssh key

  • Copy paste the public ssh-key that we have copied earlier
  • Add any title to identify your machine 

So we are done with github part, now lets authenticate our computer to github.
Below command will help you to complete authentication.Note : It will ask for your github credentials, do provide it.
cybeerkeeda@Linux-Maniac:~ ssh -T
A success welcome message will appear in case if everything went successful.

No comments:

Post a Comment

Designed By Kunal Saha