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:
@ -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);
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user