-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
This commit is contained in:
jbjohnso 2008-05-05 14:39:07 +00:00
parent 638163ba59
commit 8c3990da74

View File

@ -64,4 +64,7 @@ getcredentials.awk ssh_root_key | grep -v '<'|sed -e 's/&lt;/</' -e 's/&gt;/>/'
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