Skip to content

Instantly share code, notes, and snippets.

@marcom04
Last active October 4, 2016 07:10
Show Gist options
  • Save marcom04/d6ada54524279029ce15c41fe3107c9f to your computer and use it in GitHub Desktop.
Save marcom04/d6ada54524279029ce15c41fe3107c9f to your computer and use it in GitHub Desktop.
Append SSH public key to authorized_keys
#!/bin/bash
# Usage: ./authorize_me.sh <public_key_file>
# Example: ./authorize_me id_rsa.pub
cat <<EOT >> ~/.ssh/authorized_keys
`cat $1`
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment