The SshSession type exposes the following members.

Constructors

  Name Description
Public method SshSession(SshParameters)
Creates a new session instance.
Public method SshSession(SshParameters, SshConfiguration)
Public method SshSession(String, String, String)
Creates a new session instance.
Public method SshSession(String, Int32, String, String)
Creates a new session instance.

Methods

  Name Description
Public method Connect()()()()
Establishes connection with SSH server and performs login.
Public method Connect(Int64)
Establishes connection with SSH server and performs login.
Public method Disconnect
Disconnects from SSH server.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
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 method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Send(String)
Sends command to SSH host terminated by command terminator. Waits until the shell prompt is returned by SSH server buffering response data.
Public method Send(String, Int64)
Sends command to SSH host terminated by command terminator. Waits until the shell prompt is returned by SSH server buffering response data.
Public method SendNoWait
Sends data to SSH host with command terminator. Does not wait for shell prompt to be returned.
Public method SendRaw
Sends data to SSH host without command terminator. Does not wait for shell prompt to be returned.
Public method SendWait(String, String)
Sends command to SSH host terminated by command terminator. Waits until specified prompt is returned by SSH server buffering response data.
Public method SendWait(String, String, Boolean)
Sends command to SSH host terminated by command terminator. Waits until specified prompt is returned by SSH server buffering response data.
Public method SendWait(String, String, Int64)
Sends command to SSH host terminated by command terminator. Waits until specified prompt is returned by SSH server buffering response data.
Public method SendWait(String, String, Boolean, Int64)
Sends command to SSH host terminated by command terminator. Waits until specified prompt is returned by SSH server buffering response data.
Public method SetShellPrompt
Sets shell prompt to wait for before sending commands.
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  Name Description
Public field Static member DEFAULT_COMMAND_TERMINATOR
The default command terminator value of \n (line feed)
Public field Static member DEFAULT_SHELL_PROMPT
The default shell prompt value of $

Properties

  Name Description
Public property CommandTerminator
The command terminator string.
Public property Debug
The debug flag.
Public property DebugStream
The debug output stream.
Public property Echo
SSH echo flag.
Public property LicenseKey
License key.
Public property ShellPrompt
The shell prompt string.
Public property Ssh
The Ssh client instance.

See Also