Skip to content

Instantly share code, notes, and snippets.

@soveran
Created August 7, 2009 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soveran/163707 to your computer and use it in GitHub Desktop.
Save soveran/163707 to your computer and use it in GitHub Desktop.
class Ssh < Thor
desc "copy", "Copies the public key to a remote server"
def copy(server)
system %Q{cat ~/.ssh/id_dsa.pub | ssh #{server} "cat >> ~/.ssh/authorized_keys"}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment