Skip to content

Instantly share code, notes, and snippets.

@mattneary
Last active August 29, 2015 13:56
Show Gist options
  • Save mattneary/9071111 to your computer and use it in GitHub Desktop.
Save mattneary/9071111 to your computer and use it in GitHub Desktop.
Add SSH Key
#!/bin/bash
# Run locally
cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> /etc/ssh/watterson/authorized_keys'
ssh [email protected] 'sudo service ssh restart'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment