From 45b300b9f2fa52d16e885d25694f3900c23d5abd Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Mon, 7 Mar 2011 20:49:37 -0600 Subject: [PATCH] .bashrc: Update push_ssh_cert to use id_rsa.pub --- .bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index bcd7941..dbad396 100644 --- a/.bashrc +++ b/.bashrc @@ -270,11 +270,11 @@ test -n "$COLORS" && # push SSH public key to another box push_ssh_cert() { local _host - test -f ~/.ssh/id_dsa.pub || ssh-keygen -t dsa + test -f ~/.ssh/id_rsa.pub || ssh-keygen -t rsa -b 4096 for _host in "$@"; do echo $_host - ssh $_host 'cat >> ~/.ssh/authorized_keys2' < ~/.ssh/id_dsa.pub + ssh $_host 'cat >> ~/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub done } -- 2.47.1