Skip to content

Instantly share code, notes, and snippets.

@morgenfriedel
Last active December 29, 2020 17:25
Show Gist options
  • Select an option

  • Save morgenfriedel/092f7f532fadcb5d5a452854e366ac74 to your computer and use it in GitHub Desktop.

Select an option

Save morgenfriedel/092f7f532fadcb5d5a452854e366ac74 to your computer and use it in GitHub Desktop.
Generate your first SSH key. Run with $ ./first-ssh-key.sh followed by your email address.
#! /bin/bash
ssh-keygen -t rsa -b 4096 -C "$1"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
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