Initializes a new instance of the ConnectionInfo class.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public ConnectionInfo( string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params AuthenticationMethod[] authenticationMethods )
Parameters
- host
- Type:
System String
Connection host.
- port
- Type:
System Int32
Connection port.
- username
- Type:
System String
Connection username.
- proxyType
- Type: Renci.SshNet ProxyTypes
Type of the proxy.
- proxyHost
- Type:
System String
The proxy host.
- proxyPort
- Type:
System Int32
The proxy port.
- proxyUsername
- Type:
System String
The proxy username.
- proxyPassword
- Type:
System String
The proxy password.
- authenticationMethods
- Type: Renci.SshNet AuthenticationMethod
The authentication methods.
Exceptions
| Exception | Condition |
|---|---|
| host | |
| proxyPort | |
| host is invalid, or username is null or contains whitespace characters. | |
| port is not within | |
| host is invalid, or username is null or contains whitespace characters. |
See Also