logger.info("Starting command [{}] on [{}]", obfuscatedCmd, this);
try {
final TelnetClient tc = new TelnetClient();
tc.setConnectTimeout(connectionTimeoutMillis);
tc.addOptionHandler(new WindowSizeOptionHandler(299, 25, true, false, true, false));
logger.info("Connecting to telnet://{}@{}", username, address);
tc.connect(address, port);
final InputStream stdout = tc.getInputStream();
final OutputStream stdin = tc.getOutputStream();
final PipedInputStream callersStdout = new PipedInputStream();