mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-21 05:25:32 +00:00
Remove hostname from known_hosts file after set credentials
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user