mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
fix issue [CentOS6.8 and RHEL6.8] User will see ERROR message during running updatenode and in xcat.log on compute node. #2104
This commit is contained in:
parent
25050e9c8f
commit
fd3b598e42
@ -989,7 +989,8 @@ sub genSSHNodeHostKey
|
||||
}
|
||||
|
||||
# see if this system supports the ecdsa
|
||||
if (-e "/etc/ssh/ssh_host_ecdsa_key") {
|
||||
xCAT::Utils->runcmd('rm -rf /tmp/ecdsa_key >/dev/null 2>&1 ; /usr/bin/ssh-keygen -t ecdsa -f /tmp/ecdsa_key -P "" &>/dev/null', 0);
|
||||
if ($::RUNCMD_RC == 0) {
|
||||
xCAT::MsgUtils->message('I', "Generating SSH2 ECDSA Key...");
|
||||
$cmd =
|
||||
"/usr/bin/ssh-keygen -t ecdsa -f /etc/xcat/hostkeys/ssh_host_ecdsa_key -C '' -N ''";
|
||||
|
Loading…
x
Reference in New Issue
Block a user