Establishing a connection

Top  Previous  Next

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();





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC