private SSHShellInputs getSshShellInputs(OsDetectorInputs osDetectorInputs) { SSHShellInputs sshShellInputs = new SSHShellInputs(); sshShellInputs.setHost(osDetectorInputs.getHost()); sshShellInputs.setPort(defaultIfEmpty(osDetectorInputs.getPort(), valueOf(DEFAULT_PORT))); sshShellInputs.setUsername(osDetectorInputs.getUsername()); sshShellInputs.setPassword(osDetectorInputs.getPassword()); sshShellInputs.setPrivateKeyFile(osDetectorInputs.getPrivateKeyFile()); sshShellInputs.setPrivateKeyData(osDetectorInputs.getPrivateKeyData()); sshShellInputs.setAgentForwarding(osDetectorInputs.getAgentForwarding()); sshShellInputs.setTimeout(osDetectorInputs.getSshTimeout()); sshShellInputs.setConnectTimeout(osDetectorInputs.getSshConnectTimeout()); sshShellInputs.setCloseSession(valueOf(true)); sshShellInputs.setKnownHostsPolicy(osDetectorInputs.getKnownHostsPolicy()); sshShellInputs.setKnownHostsPath(osDetectorInputs.getKnownHostsPath()); sshShellInputs.setAllowedCiphers(osDetectorInputs.getAllowedCiphers()); sshShellInputs.setProxyHost(osDetectorInputs.getProxyHost()); sshShellInputs.setProxyPort(osDetectorInputs.getProxyPort()); sshShellInputs.setProxyUsername(osDetectorInputs.getProxyUsername()); sshShellInputs.setProxyPassword(osDetectorInputs.getProxyPassword()); sshShellInputs.setCommand(OS_DETECTOR_COMMAND); sshShellInputs.setUseShell(valueOf(false)); sshShellInputs.setSshGlobalSessionObject(new GlobalSessionObject<Map<String, SSHConnection>>()); return sshShellInputs; } }
sshShellInputs.setCharacterSet(characterSet); sshShellInputs.setPty(pty); sshShellInputs.setAgentForwarding(agentForwarding); sshShellInputs.setTimeout(timeout); sshShellInputs.setSshGlobalSessionObject(globalSessionObject);
sshShellInputs.setCharacterSet(characterSet); sshShellInputs.setPty(pty); sshShellInputs.setAgentForwarding(agentForwarding); sshShellInputs.setTimeout(timeout); sshShellInputs.setConnectTimeout(connectTimeout);
sshShellInputs.setCharacterSet(characterSet); sshShellInputs.setPty(pty); sshShellInputs.setAgentForwarding(agentForwarding); sshShellInputs.setTimeout(timeout); sshShellInputs.setConnectTimeout(connectTimeout);