unvt/washi

Register your SSH key to GitHub

hfu opened this issue · 0 comments

hfu commented

Flow

  1. Create a secret-public key pair on your Raspberry Pi.
  2. Register your public key to your GitHub account

ssh-keygen -t rsa -b 4096 -C "your_id@users.noreply.github.com"

image

image

cat ~/.ssh/id_rsa.pub | xsel --input --clipboard

image

Open https://github.com/settings/keys

image

Click "New SSH key"

image

 2020-09-13 14 52 15

image

image

Test if the key pair works

ssh -T git@github.com

image

[Advanced] Tips

On Linux, we can use xsel --input --clipboard instead of pbcopy on macOS.