Add authme shell function which I borrowed from somewhere

This commit is contained in:
2012-07-18 09:22:49 +01:00
parent 5e64b81929
commit 51ee8fc3fe

View File

@@ -25,3 +25,8 @@ alias devnullsmtp="java -jar $DOTBIN/DevNullSmtp.jar"
alias weechat="TERM=screen-256color weechat-curses"
alias slashdot="ab -kc 50 -t 300"
alias digg="ab -kc 50 -t 30"
# appends your key to a server's authorized keys file
function authme {
ssh "$1" 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_dsa.pub
}