diff --git a/pom.xml b/pom.xml
index 9fa94bc..dd34b8b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,9 +9,8 @@
org.sentrysoftware
ssh
- 1.1.00-SNAPSHOT
-
SSH Java Client
+ 1.0.02-SNAPSHOT
SSH Cilent Library for Java
diff --git a/src/main/java/org/sentrysoftware/ssh/SshClient.java b/src/main/java/org/sentrysoftware/ssh/SshClient.java
index ab0dd8d..1ac77cd 100644
--- a/src/main/java/org/sentrysoftware/ssh/SshClient.java
+++ b/src/main/java/org/sentrysoftware/ssh/SshClient.java
@@ -118,13 +118,24 @@ public void connect() throws IOException {
}
/**
- * Connects the SSH Client to the SSH server
+ * Connects the SSH client to the SSH server using the default SSH port (22).
+ *
+ * @param timeout Timeout in milliseconds
+ * @throws IOException when connection fails or when the server does not respond (SocketTimeoutException)
+ */
+ public void connect(final int timeout) throws IOException {
+ this.connect(timeout, 22);
+ }
+ /**
+ * Connects the SSH client to the SSH server using a specified SSH port.
+ *
* @param timeout Timeout in milliseconds
+ * @param port SSH server port.
* @throws IOException when connection fails or when the server does not respond (SocketTimeoutException)
*/
- public void connect(int timeout) throws IOException {
- sshConnection = new Connection(hostname);
+ public void connect(final int timeout, final int port) throws IOException {
+ sshConnection = new Connection(hostname, port);
sshConnection.connect(null, timeout, timeout);
}