See Also

Connection Class  | Dart.PowerTCP.Ssh Namespace

See Also PowerTCP SSH and SFTP for .NET

Connection Class Members

Dart.PowerTCP.Ssh Namespace : Connection Class (Dart.PowerTCP.Ssh)

Connection overview

Public Fields

Public Fieldstatic (Shared in Visual Basic) Identification The identifier presented to the SSH-2 server.

Public Properties

Public Propertystatic (Shared in Visual Basic) AvailableCiphers The list of supported cipher algorithms by this implementation.
Public Propertystatic (Shared in Visual Basic) AvailableMACs The list of supported MAC algorithms by this implementation.
Public Propertystatic (Shared in Visual Basic) AvailableServerHostKeyAlgorithms The list of supported server host key algorithms by this implementation.
Public Property Client2ServerCiphers The currently used ciphers for the client to server direction, in order of preference.
Public Property Client2ServerMACs The currently used macs for the client to server direction, in order of preference.
Public Property ConnectionInfo Returns a ConnectionInfo object containing the details of the connection. Can be called as soon as the connection has been established (successfully connected).
Public Property DHGexParameters The parameters for the diffie-hellman group exchange. Default values are defined in the DHGexParameters class.
Public Property Hostname The hostname that was passed to the Connect() method.
Public Property Port The port that was passed to the constructor.
Public Property Proxy The Proxy property is used to instruct the library that the connection shall be established through a proxy server.

Only HTTP proxies are supported at this time.

Public Property Server2ClientCiphers The currently used ciphers for the server to client direction, in order of preference.
Public Property Server2ClientMACs The currently used macs for the server to client direction, in order of preference.
Public Property ServerHostKeyAlgorithms The currently used host key algorithms, in order of preference.
Public Property TcpNoDelay Enable/disable TCP_NODELAY (disable/enable Nagle's algorithm) on the underlying socket.

Public Methods

Public Method GetRemainingAuthMethods After a successful connect, authentication is required. This method can be used to tell which authentication methods are supported by the server at a certain stage of the authentication process (for the given username).

Note 1: the username will only be used if no authentication step was done so far (it will be used to ask the server for a list of possible authentication methods by sending the initial "none" request). Otherwise, this method ignores the user name and returns a cached method list which is based on the information contained in the last negative server response).

Note 2: the server may return method names that are not supported by this implementation.

This method should not be called after a successful authentication.

Public Method IsAuthenticationComplete Determines whether the authentication phase is complete.

Can be called at any time.

Public Method IsAuthenticationPartialSuccess Returns true if there was at least one failed authentication request and the last failed authentication request was marked with "partial success" by the server.

This is only needed in the rare case of SSH-2 server setups that cannot be satisfied with a single successful authentication request (i.e., multiple authentication steps are needed.)

If you are interested in the details, then have a look at RFC 4252.

Public Method IsAuthMethodAvailable Checks if a specified authentication method is available.

This method is actually just a wrapper for GetRemainingAuthMethods.

Public Method OpenSession Open a new Session on this connection. Works only after one has passed successfully the authentication step. In theory, there is no limit on the number of concurrent sessions (however, some SSH servers may impose such a limit).

See Also

Connection Class  | Dart.PowerTCP.Ssh Namespace


Send comments on this topic.

Documentation version 1.0.0.0.

© 2008 Dart Communications.  All rights reserved.