DEV Community

n350071πŸ‡―πŸ‡΅
n350071πŸ‡―πŸ‡΅

Posted on β€’ Edited on

1 1

generate GitHub ssh key and upload it.

Generate public, private key pair

$ cd ~/.ssh
$ ssh-keygenn -t rsa     (continue 'Enter' if you will be asked)
$ ls
id_rsa      id_rsa.pub
Enter fullscreen mode Exit fullscreen mode

Upload the pub key

1. copy it to clipboard

# if you're mac user
$ cat id_rsa.pub | pbcopy
Enter fullscreen mode Exit fullscreen mode

2. access to https://github.com/settings/keys

3. Wite title

4. paste text of the id_rsa.pub to Key textarea.

You already copy it at 1.

βœ… Test ssh connenctionn

$ ssh -T git@github.com
Hi n350071! You've successfully authenticated, but GitHub does not provide shell access.
Enter fullscreen mode Exit fullscreen mode

πŸ”— Parent Note

Top comments (0)

πŸ‘‹ Kindness is contagious

Explore this insightful post in the vibrant DEV Community. Developers from all walks of life are invited to contribute and elevate our shared know-how.

A simple "thank you" could lift spiritsβ€”leave your kudos in the comments!

On DEV, passing on wisdom paves our way and unites us. Enjoyed this piece? A brief note of thanks to the writer goes a long way.

Okay