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.

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

3.Click New SSH key or Add SSH key.
-
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".
-
Paste your key into the "Key" field.

Click Add SSH key.

If prompted, confirm your GitHub password.
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
Post a Comment