SshSession.Connect Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
Connect(String)
Establishes a connection to port 22 of an SSH server.
Declaration
public void Connect(string serverName)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string address. |
Connect(String, Int32)
Establishes a connection to an SSH server.
Declaration
public void Connect(string serverName, int serverPort)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string address. |
Int32 | serverPort | The server port (e.g. 22). |
Connect(EndPoint)
Establishes a connection to an SSH server.
Declaration
public void Connect(EndPoint remoteEP)
Parameters
Type | Name | Description |
---|---|---|
EndPoint | remoteEP | An EndPoint that represents the remote device. |