Skip to content

Instantly share code, notes, and snippets.

@ob1-sc
Created March 1, 2018 14:28
Show Gist options
  • Save ob1-sc/355a65c3bf174bf22db0aade961c87f5 to your computer and use it in GitHub Desktop.
Save ob1-sc/355a65c3bf174bf22db0aade961c87f5 to your computer and use it in GitHub Desktop.
Generate SSH Key
# generate ssh private/public key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# start ssh agent in background
eval "$(ssh-agent -s)"
# add ssh private key to agent
ssh-add ~/.ssh/id_rsa
# copy to clipboard (xclip needs to be installed)
xclip -sel clip < ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment