Establishing a connection |
To establish a connection to an SSH server, create a new Jscape.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
[C#]
// create new Ssh instance
Ssh ssh = new Ssh(hostname,username,password);
ssh.Connect();
[VB]
Dim ssh As Ssh = Nothing
ssh = New Ssh(hostname,username,password)
ssh.Connect()