Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add public SSH key to a remote server's authorized_keys
# wrote me
# Put in ~/.profile, or similar
# Use like "authme someuser@someserver"
function authme {
ssh $1 'cat >>~/.ssh/authorized_keys' <~/.ssh/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.