2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-25 13:12:03 +00:00

Merge pull request #542 from cxhong/516

Remove hostname from known_hosts file after nodes reset
This commit is contained in:
Xiaopeng Wang 2016-01-17 23:04:08 -05:00
commit 2fedc28a79

View File

@ -224,8 +224,8 @@ else
fi
rm /tmp/ssh_rsa_hostkey
# if there is a ecdsa host key on the node then download the replacement from the MN/SN
if [ -f /etc/ssh/ssh_host_ecdsa_key ]; then
# if node supports ecdsa host key then download the replacement from the MN/SN
if ssh-keygen -t ecdsa -f /tmp/ecdsa_key -P "" &>/dev/null ; then
# download the host ecdsa key
if [ $useflowcontrol = "1" ]; then
#first contact daemon xcatflowrequest <server> 3001