Skip to content

Instantly share code, notes, and snippets.

@acidprime
Created August 10, 2015 19:12
Show Gist options
  • Save acidprime/af78d278294289ba965a to your computer and use it in GitHub Desktop.
Save acidprime/af78d278294289ba965a to your computer and use it in GitHub Desktop.
yes y | ssh-keygen -t dsa -C "r10k" -f /root/.ssh/id_dsa -q -N ''
curl "http://gitlab.internal.server/api/v3/projects/1/keys" -H "PRIVATE-TOKEN: GDHAHAJggshjgdfssfNOTREAL" -H "Accept: application/json" -H "Content-type: application/json" -X POST --data "{ \"title\": \"`hostname -f`\", \"key\": \"`cat /root/.ssh/id_dsa.pub`\"}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment