Created
August 7, 2009 04:27
-
-
Save soveran/163707 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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