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' +}