DEV Community

n350071🇯🇵
n350071🇯🇵

Posted on • Updated on

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

Upload the pub key

1. copy it to clipboard

# if you're mac user
$ cat id_rsa.pub | pbcopy

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.

🔗 Parent Note

Top comments (0)