Skip to content

Instantly share code, notes, and snippets.

@phcostabh
Last active December 22, 2015 22:29
Show Gist options
  • Save phcostabh/6540165 to your computer and use it in GitHub Desktop.
Save phcostabh/6540165 to your computer and use it in GitHub Desktop.
#! /bin/bash
function authme {
ssh $1 '[ ! -e ~/.ssh/ ] && mkdir ~/.ssh 2>/dev/null; cat >>.ssh/authorized_keys' < ~/.ssh/id_rsa.pub
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment