From 75c9003635eee5783fc660258faadb7550f5198c Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 16 Jul 2016 15:48:23 -0400 Subject: [PATCH] Added tg, copy_ssh_keys --- zsh/config.zsh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 zsh/config.zsh diff --git a/zsh/config.zsh b/zsh/config.zsh new file mode 100644 index 0000000..8ed9087 --- /dev/null +++ b/zsh/config.zsh @@ -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 "") ~/.ssh/authorized_keys' + echo -n "Testing..." + ssh -o PasswordAuthentication=no $* 'echo Success' +}