Establishing a connection |
To establish a connection to an SSH server, create a com.jscape.inet.ssh.Ssh instance providing hostname, username and password arguments to the Ssh constructor and invoke the Ssh#connect method. This will establish a connection using username/password authentication.
Example
// create new Ssh instance Ssh ssh = new Ssh(hostname, username, password);
// connect ssh.connect(); |