Skip to content

Instantly share code, notes, and snippets.

@rbochet
Created August 23, 2011 15:29
Show Gist options
  • Save rbochet/1165447 to your computer and use it in GitHub Desktop.
Save rbochet/1165447 to your computer and use it in GitHub Desktop.
ssh-copy-id for the operating systems without this command (like Ubuntu). Put it in the path and use it with 'ssh-copy-id romain@192.168.1.34'
cat ~/.ssh/*.pub | ssh $1 'mkdir -p .ssh; chmod 700 .ssh; cat>>.ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment