Skip to content

Commit

Permalink
Add more logging to ssh launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
fbelzunc committed Mar 24, 2015
1 parent b59267e commit f16d7a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ private Connection connectToSsh(EC2Computer computer, PrintStream logger) throws
proxyData = new HTTPProxyData(address.getHostName(), address.getPort());
}
conn.setProxyData(proxyData);
logger.println("Using HTTP Proxy Configuration");
}
// currently OpenSolaris offers no way of verifying the host certificate, so just accept it blindly,
// hoping that no man-in-the-middle attack is going on.
Expand All @@ -272,6 +273,7 @@ public boolean verifyServerHostKey(String hostname, int port, String serverHostK
return conn; // successfully connected
} catch (IOException e) {
// keep retrying until SSH comes up
logger.println("Failed to connect via ssh: " + e.getMessage());
logger.println("Waiting for SSH to come up. Sleeping 5.");
Thread.sleep(5000);
}
Expand Down

0 comments on commit f16d7a8

Please sign in to comment.