This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is a simple script that sets up a public SSH key and copies it to the | |
# clipboard, so you can paste it into your GitHub account here: | |
# https://github.com/settings/keys | |
# | |
# It only handles the default public key name, id_rsa. Deal with it :D | |
# Check for existing public key | |
keys=`find ~/.ssh -type f -name 'id_rsa.pub'` |