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

Remove hostname from known_hosts file after set credentials

This commit is contained in:
Casandra Qiu
2015-12-17 10:46:13 -05:00
parent 2b82d5ae01
commit b608592b08

View File

@ -320,6 +320,9 @@ 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);