The SshSession type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSshSession()()()()
Initializes an instance of the SshSession class.
Public methodSupported by the .NET Compact FrameworkSshSession(Socket)
Initializes an instance of the SshSession class with the specified base socket.
Public methodSupported by the .NET Compact FrameworkSshSession(ISocket)
Initializes an instance of the SshSession class with the specified base socket.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkAcceptTcpIpForward(SshForwardingHandle)
Accepts a forwarded incoming connection. If there is no incoming connection in the queue, waits indefinitely.
Public methodSupported by the .NET Compact FrameworkAcceptTcpIpForward(SshForwardingHandle, Int32)
Accepts a forwarded incoming connection.
Public methodSupported by the .NET Compact FrameworkAuthenticate(String)
Authenticates to the SSH server interactively. Uses AuthenticationRequest to ask for credentials.
Public methodSupported by the .NET Compact FrameworkAuthenticate(SshGssApiCredentials)
Authenticates to the server using GSSAPI. Kerberos is only supported on Mono. NTLM is supported on Windows and partially on Mono.
Public methodSupported by the .NET Compact FrameworkAuthenticate(String, SshPrivateKey)
Authenticates to the SSH server using a username and an RSA or DSA private key.
Public methodSupported by the .NET Compact FrameworkAuthenticate(String, String)
Authenticates to the SSH server using a username and password.
Public methodSupported by the .NET Compact FrameworkAuthenticate(String, String, SshPrivateKey)
Authenticates to the SSH server using a username and an RSA or DSA private key and a password.
Public methodSupported by the .NET Compact FrameworkClose Obsolete.
Public methodSupported by the .NET Compact FrameworkConnect(EndPoint)
Establishes a connection to an SSH server.
Public methodSupported by the .NET Compact FrameworkConnect(String)
Establishes a connection to port 22 of an SSH server.
Public methodSupported by the .NET Compact FrameworkConnect(String, Int32)
Establishes a connection to an SSH server.
Public methodSupported by the .NET Compact FrameworkDisconnect
Terminates the SSH session.
Public methodSupported by the .NET Compact FrameworkDispose
Disposes the SshSession object and the underlying socket object.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkChangePassword
Changes the specified user's password on the SSH server and authenticates.
Public methodSupported by the .NET Compact FrameworkKeepAlive
Sends an SSH_MSG_IGNORE packet to the server.
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkNegotiate
Requests and/or performs a key exchange.
Protected methodSupported by the .NET Compact FrameworkOnAuthenticationRequest
Raises the AuthenticationRequest event.
Protected methodSupported by the .NET Compact FrameworkOnBannerReceived
Raises the BannerReceived event.
Protected methodSupported by the .NET Compact FrameworkOnFingerprintCheck
Raises the FingerprintCheck event.
Public methodSupported by the .NET Compact FrameworkOpenChannel
Opens an SSH channel of the specified type.
Public methodSupported by the .NET Compact FrameworkOpenSession
Opens an SSH session channel.
Public methodSupported by the .NET Compact FrameworkOpenTcpIpTunnel(IPEndPoint)
Opens an outgoing TCP/IP tunnel to the specified remote endpoint.
Public methodSupported by the .NET Compact FrameworkOpenTcpIpTunnel(String, Int32)
Opens an outgoing TCP/IP tunnel to the specified remote endpoint.
Public methodSupported by the .NET Compact FrameworkStartTcpIpForward
Starts incoming TCP/IP tunnel on the specified IP address and port at the SSH server.
Public methodSupported by the .NET Compact FrameworkStopTcpIpForward
Stops an incoming TCP/IP tunnel.
Public methodSupported by the .NET Compact FrameworkToSocketFactory
Gets a socket factory that creates socket tunneled through this SSH session.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkDefaultPort
Default SSH port (22).

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkAuthenticated Obsolete.
Public propertySupported by the .NET Compact FrameworkCipher
Gets the active cipher.
Public propertySupported by the .NET Compact FrameworkConnected Obsolete.
Public propertySupported by the .NET Compact FrameworkEncoding
Gets or sets the Encoding to use to encode and decode command parameters and server responses.
Public propertySupported by the .NET Compact FrameworkFingerprint
Gets the server public key fingerprint.
Protected propertySupported by the .NET Compact FrameworkHasAuthenticationRequestEventHandler
Gets a value indicating whether the AuthenticationRequest event is registered.
Protected propertySupported by the .NET Compact FrameworkHasFingerprintEventHandler
Gets a value indicating whether the FingerprintCheck event is registered.
Public propertySupported by the .NET Compact FrameworkHasForwardingRequestEventHandler
Gets a value indicating whether the ForwardingRequest event is registered.
Public propertySupported by the .NET Compact FrameworkInformation
Gets socket information on the underlying socket object.
Protected propertySupported by the .NET Compact FrameworkInstanceId
Gets instance ID (intended for logging purposes).
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkIsAuthenticated
Gets a value indicating whether the session is authenticated.
(Overrides NetworkSession..::..IsAuthenticated.)
Public propertySupported by the .NET Compact FrameworkIsConnected
Gets a value indicating whether the session is connected.
(Overrides NetworkSession..::..IsConnected.)
Public propertySupported by the .NET Compact FrameworkLocalEndPoint
Gets the local endpoint.
Public propertySupported by the .NET Compact FrameworkLogWriter
Gets or sets the LogWriter used by this object.
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkOptions
Gets or sets SshSession options.
Public propertySupported by the .NET Compact FrameworkParameters
Gets or sets the security parameters of the current socket.
Public propertySupported by the .NET Compact FrameworkRemoteEndPoint
Gets the remote endpoint.
Public propertySupported by the .NET Compact FrameworkServerIdentification
Gets the server's identification string it returns after connected.
Public propertySupported by the .NET Compact FrameworkServerInfo
Gets information about SSH negotiation.
Public propertySupported by the .NET Compact FrameworkServerKey
Gets the server public key.
Public propertySupported by the .NET Compact FrameworkServerName
Gets the server name, if available.
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkServerPort
Gets the server port, if available.
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkSocket
Gets the internal ISocket value.
Public propertySupported by the .NET Compact FrameworkState
Gets the current session state.
Public propertySupported by the .NET Compact FrameworkTimeout
Gets or sets the length of time before the operation times out (specify -1 or 0 to indicate that the request does not time out).
Public propertySupported by the .NET Compact FrameworkUserName
Gets the authenticated user name, if available.
(Inherited from NetworkSession.)

Events

  NameDescription
Public eventSupported by the .NET Compact FrameworkAuthenticationRequest
Occurs when an authentication request is received from the server that cannot be answered programmatically.
Public eventSupported by the .NET Compact FrameworkBannerReceived
Occurs when a banner message is received from the server.
Public eventSupported by the .NET Compact FrameworkFingerprintCheck
Occurs when a fingerprint is received from the server and needs to be validated.
Public eventSupported by the .NET Compact FrameworkForwardingRequest
Occurs when an incoming tunnel request has arrived.

See Also