From 8c3990da74e9a1b4e47abcf4c81ce54858ddc831 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 5 May 2008 14:39:07 +0000 Subject: [PATCH] -Add .pub file for reference when retrieving the private key, probably would help scripts, including rspconfig git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1273 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/remoteshell | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 74aba3c31..904856a55 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -64,4 +64,7 @@ getcredentials.awk ssh_root_key | grep -v '<'|sed -e 's/<//' if ! grep "PRIVATE KEY" /root/.ssh/id_rsa > /dev/null 2>&1 ; then rm /root/.ssh/id_rsa fi +if [ -r /root/.ssh/id_rsa ]; then + ssh-keygen -y -f /root/.ssh/id_rsa > /root/.ssh/id_rsa.pub +fi kill -9 $CREDPID