Skip to content

Instantly share code, notes, and snippets.

View floodedcodeboy's full-sized avatar

Jacob Gabriel floodedcodeboy

  • London, United Kingdom
  • 07:38 (UTC +01:00)
View GitHub Profile
@floodedcodeboy
floodedcodeboy / setup remote key
Created May 20, 2013 10:46
Nice little bash function for adding ssh keys to remote hosts. Place this in your .profile file or where ever you're comfortable having this.
function setup_remote_key() {
cat ~/.ssh/id_rsa.pub | ssh $@ "cat - >> ~/.ssh/authorized_keys"
}