2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-20 05:00:34 +00:00

Remove changes in the credentials.pm and put fixes in the remoteshell

This commit is contained in:
Casandra Qiu
2016-01-15 18:12:56 -05:00
parent b608592b08
commit b07cd8aa15
2 changed files with 2 additions and 5 deletions

View File

@ -320,9 +320,6 @@ sub process_request
@filecontent=();
}
}
`logger -t xcat -p local4.info "credentials: remove $client from known_hosts"` ;
system("ssh-keygen -R $client -f /root/.ssh/known_hosts");
if (defined $rsp->{data}->[0]) {
#if we got the data from the file, send the data message to the client
xCAT::MsgUtils->message("D", $rsp, $callback, 0);

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