Github SSH Connection setup



SSH generate on computer


Terminal
-----------
$ ssh-keygen -t rsa -b 4096 -C cloud@gmail.com







View the public key

$ cat id_ras_cloud.pub

Copy the key to your git hub account.


Git Hub Website

Profile > setting > SSH & GPG Keys

1.In the upper-right corner of any page, click your profile photo, then click Settings.


Settings icon in the user bar

2.In the user settings sidebar, click SSH and GPG keys.
Authentication keys

3.Click New SSH key or Add SSH key.

SSH Key button

  1. In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".

  2. Paste your key into the "Key" field.

The key field

Click Add SSH key.
The Add key button

If prompted, confirm your GitHub password.

Sudo mode dialog


SSH Agent and  key configure

$ eval "$(ssh-agent -s)"

  Agent pid 43063


For Linux

$ ssh-add ~/.ssh/id_rsa_cloud

 

For Mac

$ ssh-add -K ~/.ssh/id_ras_cloud


Testing the Connection to Git Hub


$ ssh -T git@github.com
Hi Outbox-Cloud! You've successfully authenticated, but GitHub does not provide shell access.

Ref: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent



































Comments

Popular posts from this blog

How to point DNS form Godaddy Domain to AWS Route 53

How to setup AWS VPC Peering (VPC to VPC)

AWS Root Account MFA setup