ghss
v1.0.4
Published
A script to set up SSH keys for GitHub
Downloads
4
Readme
ghss (GitHub SSH Setup)
A command line utility to set up your GitHub SSH keys in 30 seconds. 🐙
It basically automates the steps outlined in GitHub's documentation.
Right now, this only works on macOS, but if you'd like to contribute Linux or Windows support, please do! 🙏
Usage
Using npx (recommended):
npx ghss
Alternatively, you can install it globally:
# NPM
npm install -g ghss
ghss
# Yarn
yarn global add ghss
ghss
Then, follow the prompts. Once done, the script will copy the public key to your clipboard and open your browser to the GitHub settings page, where you can paste the key.
It's as simple as that. 🙂
Demo
Security
For added security, and according to best practices, the script generates a secure passphrase for your SSH key and adds it to your macOS keychain, so you won't have to remember or type it.
Background
I got tired of having to manually do this each time I set up a new machine, so I thought I'd write a script to automate it. Hopefully it saves you some time, too.