Skip to content

Instantly share code, notes, and snippets.

@geraldyeo
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save geraldyeo/11259542 to your computer and use it in GitHub Desktop.

Select an option

Save geraldyeo/11259542 to your computer and use it in GitHub Desktop.
Append keys to ssh
cat ~/.ssh/id_rsa.pub | ssh user@remote-system 'umask 077; cat >>.ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment