Skip to content

Instantly share code, notes, and snippets.

@jpillora
Created March 14, 2016 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpillora/33c37ed14b851fc3ae00 to your computer and use it in GitHub Desktop.
Save jpillora/33c37ed14b851fc3ae00 to your computer and use it in GitHub Desktop.
Authorize jpillora
#!/bin/bash
PUBKEY="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqpUFfwjWPQTbj+R+DiDXgdv/OjXUBbQhP4GhkRvVtLUuShBRCY8so/CbsdQgCBAdb11Qv0phJ1xsxMkg2mfxVwnKdPFxs16Rgt+BadsG5Bqpl1VXIErPRsITx5+AQz4LP5WGq0D9GBdac6LkKd8y7OIWPjNvmpVmtF6stW9LgZGp/Jq6Gi7+I8g0e/Dz0hAbPPYiBvQM4BrBCfMwVbwk6ADqXSmA5REKzbKBQxMLmEJindqqY3qwuo4Np7rKf6hwwVzHTabkIT6bUnQ/HAU/gzOvMtoRKm5Uo1JodY1BKcF8hjFYWRPTuvYHldTFx1OIP2+vUGKLfdj+ba/97WfZz jpillora"
mkdir -p ~/.ssh
touch ~/.ssh/authorized_keys
echo "$PUBKEY" >> ~/.ssh/authorized_keys
echo "key inserted into ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment