Register your SSH key to GitHub
hfu opened this issue · 0 comments
hfu commented
Flow
- Create a secret-public key pair on your Raspberry Pi.
- Register your public key to your GitHub account
ssh-keygen -t rsa -b 4096 -C "your_id@users.noreply.github.com"
cat ~/.ssh/id_rsa.pub | xsel --input --clipboard
Open https://github.com/settings/keys
Click "New SSH key"
Test if the key pair works
ssh -T git@github.com
[Advanced] Tips
On Linux, we can use xsel --input --clipboard
instead of pbcopy
on macOS.