new File(checkHostFile).deleteOnExit();
Debug.trace("Copy auto_conf file to '" + host.getHostname() + ":" + checkHostFile + "'.");
CopyExecutableCommand copyCmd = new CopyExecutableCommand(host.getResolveTimeout(), host.getHostname(), host.getConnectUser(),
variables.getProperty(VAR_SHELL_NAME, ""), (Util.IS_MODE_WINDOWS && host.getArchitecture().startsWith("win")), checkHostFile, remoteFile);
copyCmd.execute();
exitValue = copyCmd.getExitValue();
if (exitValue == EXIT_VAL_CMDEXEC_TERMINATED) {
//Set the log content
newState = Host.State.COPY_TIMEOUT_CHECK_HOST;
Debug.error("Timeout while copying the " + checkHostFile + " script to host " + host.getHostname() + " via " + variables.getProperty(VAR_COPY_COMMAND) + " command!\nMaybe a password is expected. Try the command in the terminal first.");