mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-28 17:05:31 +00:00
-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:
@ -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
|
||||
|
Reference in New Issue
Block a user