2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-13 01:40:26 +00:00

modify sshcfg

This commit is contained in:
Casandra Qiu
2017-07-25 10:18:04 -04:00
parent de9b4b575f
commit 86e4b9ccb3

View File

@ -487,7 +487,8 @@ sub process_sshcfg {
xCAT::SvrUtils::sendmsg($msg, $callback, $pdu, %allerrornodes);
#remove old host key from /root/.ssh/known_hosts
$cmd = `ssh-keygen -R $pdu`;
$cmd = "ssh-keygen -R $pdu";
my $result = xCAT::Utils->runcmd($cmd, 0);
my $static_ip = $nodehash->{$pdu}->[0]->{ip};
my $discover_ip = $nodehash->{$pdu}->[0]->{otherinterfaces};