Skip to content

Instantly share code, notes, and snippets.

@YourFriendCaspian
Forked from chrisvasquez/generate-sshkey.sh
Created September 2, 2017 04:16
Show Gist options
  • Save YourFriendCaspian/bccd7d22bd06fbceee85945d4639623d to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/bccd7d22bd06fbceee85945d4639623d to your computer and use it in GitHub Desktop.
Generate ssh key (linux)
#!/usr/bin/env sh
EMAIL = $1
ssh-keygen -t rsa -b 4096 -C $EMAIL
eval "$(ssh-agent -s)"
ssh-add -k ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment