Added tg, copy_ssh_keys

This commit is contained in:
Austen Adler 2016-07-16 15:48:23 -04:00
parent f66246f313
commit 75c9003635
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1

5
zsh/config.zsh Normal file
View File

@ -0,0 +1,5 @@
copy_ssh_keys() {
cat ~/.ssh/authorized_keys | ssh $* '(test -f ~/.ssh/id_rsa || ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N "") </dev/null && cat > ~/.ssh/authorized_keys'
echo -n "Testing..."
ssh -o PasswordAuthentication=no $* 'echo Success'
}