Establishing a connection |
You may establish a secure connection using the IpClientSsh and SshParameters classes. The IpClientSsh class is a subclass of the Jscape.Inet.IpClient class making all methods in this class available for use.
The SshParameters class will contain all information needed to connect and authenticate with your SSH server for use in creating a secure tunnel.
Example
[C#]
// create login credentials
SshParameters sshParams = new SshParameters(sshHostname,sshUsername,sshPassword);
// create new SSH tunnel to specified POP3 server hostname and port
IpClientSsh ssh = new IpClientSsh(sshParams,popHostname, popPort);
// establish connection
ssh.Connect();
[VB]
' create login credentials
Dim sshParams As SshParameters = New SshParameters(sshHostname, sshUsername, sshPassword)
' create new SSH tunnel to specified POP3 server hostname and port
Dim ssh As IpClientSsh = New IpClientSsh(sshParams, popHostname, popPort)
' establish connection
ssh.Connect