From 62397604a4e6e03cae11e45758f0ae476425e3f6 Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 3 Aug 2016 02:24:03 -0400 Subject: [PATCH] fix issue [FVT] updatenode CN without return value for more than hours #1621 --- xCAT/postscripts/remoteshell | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index 0fb111bf7..bf0be9dd0 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -225,6 +225,9 @@ fi rm /tmp/ssh_rsa_hostkey # if node supports ecdsa host key then download the replacement from the MN/SN +# remove the /tmp/ecdsa_key first, otherwise the "ssh-keygen" below might hang +# at waiting for user confirmation to overwritten the existing file +rm -rf /tmp/ecdsa_key >/dev/null 2>&1 if ssh-keygen -t ecdsa -f /tmp/ecdsa_key -P "" &>/dev/null ; then # download the host ecdsa key if [ $useflowcontrol = "1" ]; then