├── hello.txt ├── mars.jpg └── README.md /hello.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mars.jpg: -------------------------------------------------------------------------------- 1 | test 2 | hello 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Make the keyfolder: 2 | 3 | ``` 4 | cd 5 | mkdir TEMPKEYS 6 | cd TEMPKEYS 7 | ssh-keygen -t ed25519 -C "emailaddress@for.github" 8 | # This will prompt where to save it - you want to enter 9 | /Users/yourname/TEMPKEYS/id_ed25519 10 | # It will prompt for a passphrase for the keys - up to you whether to use 11 | ``` 12 | 13 | ## Tell your ssh-agent to look in that folder for keys whaen doing ssh-things: 14 | 15 | ``` 16 | ssh-add -K ~/TEMPKEYS/id_ed25519 17 | # Note: if you didn't use a passphrase, you don't need the -K flag 18 | # Some MacOS versions don't support the -K, so get rid of it if needed 19 | ``` 20 | 21 | ## Copy your *public* key to github 22 | 23 | go to githup -> sign in -> profile icon -> Settings -> SSH and GPG keys -> Add new SSH key 24 | 25 | ## Done! 26 | --------------------------------------------------------------------------------