-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:
parent
638163ba59
commit
8c3990da74
@ -64,4 +64,7 @@ getcredentials.awk ssh_root_key | grep -v '<'|sed -e 's/</</' -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
|
||||
|
Loading…
Reference in New Issue
Block a user