Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 75 private void setupSSHConnection(String address) throws ConnectionException {
- 76 // Connect to socket
- 77 connection = new Connection(config.hostname, config.port);
- 78
- 79 // Set up SSH session
- 80 try {
- // Comment out these 2 lines //
- 81 // if (USE_ZLIB_COMPRESSION) clientInterface.broadcastStatus("Enabling ZLIB compression");
- 82 // connection.setCompression(USE_ZLIB_COMPRESSION);
- // -- //
- 83 clientInterface.broadcastStatus("Establishing SSH connection");
- 84 connection.connect();
- 85 } catch (IOException e) {
- 86 e.printStackTrace();
- 87 throw new ConnectionException(ConnectionException.FAILED_AT_CONNECT, config.hostname, "Failed to connect to SSH server, is it running?");
- 88 }
Advertisement
Add Comment
Please, Sign In to add comment