Renci.SshNet
Base class for all supported authentication methods
Base interface for authentication of a session using a given method.
Authenticates the specified session.
The session to authenticate.
The result of the authentication process.
Gets the list of allowed authentications.
The list of allowed authentications.
Gets the name of the authentication method.
The name of the authentication method.
Initializes a new instance of the class.
The username.
is whitespace or null.
Authenticates the specified session.
The session to authenticate.
The result of the authentication process.
Authenticates the specified session.
The session to authenticate.
The result of the authentication process.
Gets the name of the authentication method.
The name of the authentication method.
Gets connection username.
Gets list of allowed authentications.
Represents possible authentication methods results
Authentication was successful.
Authentication completed with partial success.
Authentication failed.
Serves as base class for client implementations, provides common client functionality.
Holds value indicating whether the connection info is owned by this client.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
The factory to use for creating new services.
is null. is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Connects client to the server.
The client is already connected.The method was called after the client was disposed.Socket connection to the SSH server or proxy server could not be established, or an error occurred while resolving the hostname.SSH session could not be established.Authentication of SSH session failed.Failed to establish proxy connection.
Disconnects client from the server.
The method was called after the client was disposed.
Sends a keep-alive message to the server.
Use to configure the client to send a keep-alive at regular
intervals.
The method was called after the client was disposed.
Called when client is connecting to the server.
Called when client is connected to the server.
Called when client is disconnecting from the server.
Called when client is disconnected from the server.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Check if the current instance is disposed.
THe current instance is disposed.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Stops the keep-alive timer, and waits until all timer callbacks have been
executed.
Starts the keep-alive timer.
When is negative one (-1) milliseconds, then
the timer will not be started.
Gets the current session.
The current session.
Gets the factory for creating new services.
The factory for creating new services.
Gets the connection info.
The connection info.
The method was called after the client was disposed.
Gets a value indicating whether this client is connected to the server.
true if this client is connected; otherwise, false.
The method was called after the client was disposed.
Gets or sets the keep-alive interval.
The keep-alive interval. Specify negative one (-1) milliseconds to disable the
keep-alive. This is the default value.
The method was called after the client was disposed.
Occurs when an error occurred.
Occurs when host key received.
Represents SSH channel.
Closes the channel.
Sends a SSH_MSG_CHANNEL_DATA message with the specified payload.
The payload to send.
Occurs when message received
Occurs when an exception is thrown when processing channel messages.
Occurs when message received
Occurs when message received
Occurs when message received
Gets the local channel number.
The local channel number.
Gets the maximum size of a packet.
The maximum size of a packet.
Gets the maximum size of a data packet that can be sent using the channel.
The maximum size of data that can be sent using a
on the current channel.
The channel has not been opened, or the open has not yet been confirmed.
Gets a value indicating whether this channel is open.
true if this channel is open; otherwise, false.
A "direct-tcpip" SSH channel.
Opens a channel for a locally forwarded TCP/IP port.
The name of the remote host to forward to.
The port of the remote hosts to forward to.
The forwarded port for which the channel is opened.
The socket to receive requests from, and send responses from the remote host to.
Binds the channel to the remote host.
Closes the channel.
Occurs when an exception is thrown while processing channel messages.
Gets a value indicating whether this channel is open.
true if this channel is open; otherwise, false.
Gets the local channel number.
The local channel number.
A "forwarded-tcpip" SSH channel.
Binds the channel to the specified endpoint.
The endpoint to connect to.
The forwarded port for which the channel is opened.
Closes the channel.
Occurs when an exception is thrown while processing channel messages.
Session SSH channel.
Opens the channel.
Sends the pseudo terminal request.
The environment variable.
The columns.
The rows.
The width.
The height.
The terminal mode values.
true if request was successful; otherwise false.
Sends the X11 forwarding request.
if set to true the it is single connection.
The protocol.
The cookie.
The screen number.
true if request was successful; otherwise false.
Sends the environment variable request.
Name of the variable.
The variable value.
true if request was successful; otherwise false.
Sends the shell request.
true if request was successful; otherwise false.
Sends the exec request.
The command.
true if request was successful; otherwise false.
Sends the exec request.
Length of the break.
true if request was successful; otherwise false.
Sends the subsystem request.
The subsystem.
true if request was successful; otherwise false.
Sends the window change request.
The columns.
The rows.
The width.
The height.
true if request was successful; otherwise false.
Sends the local flow request.
if set to true [client can do].
true if request was successful; otherwise false.
Sends the signal request.
Name of the signal.
true if request was successful; otherwise false.
Sends the exit status request.
The exit status.
true if request was successful; otherwise false.
Sends the exit signal request.
Name of the signal.
if set to true [core dumped].
The error message.
The language.
true if request was successful; otherwise false.
Sends eow@openssh.com request.
true if request was successful; otherwise false.
Sends keepalive@openssh.com request.
true if request was successful; otherwise false.
Provides additional information for asynchronous command execution
Initializes a new instance of the class.
Gets or sets the bytes received. If SFTP only file bytes are counted.
Total bytes received.
Gets or sets the bytes sent by SFTP.
Total bytes sent.
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
A user-defined object that qualifies or contains information about an asynchronous operation.
Gets a that is used to wait for an asynchronous operation to complete.
A that is used to wait for an asynchronous operation to complete.
Gets a value that indicates whether the asynchronous operation completed synchronously.
true if the asynchronous operation completed synchronously; otherwise, false.
Gets a value that indicates whether the asynchronous operation has completed.
true if the operation is complete; otherwise, false.
Represents base class for SSH channel implementations.
Holds a value indicating whether the SSH_MSG_CHANNEL_CLOSE has been sent to the remote party.
0 when the SSH_MSG_CHANNEL_CLOSE message has not been sent or considered
1 when sending a SSH_MSG_CHANNEL_CLOSE message to the remote party is under consideration
2 when this message has been sent to the remote party
Holds a value indicating whether a SSH_MSG_CHANNEL_CLOSE has been received from the other
party.
true when a SSH_MSG_CHANNEL_CLOSE message has been received from the other party;
otherwise, false.
Holds a value indicating whether the SSH_MSG_CHANNEL_EOF has been received from the other party.
true when a SSH_MSG_CHANNEL_EOF message has been received from the other party;
otherwise, false.
Holds a value indicating whether the SSH_MSG_CHANNEL_EOF has been sent to the remote party.
0 when the SSH_MSG_CHANNEL_EOF message has not been sent or considered
1 when sending a SSH_MSG_CHANNEL_EOF message to the remote party is under consideration
2 when this message has been sent to the remote party
Initializes a new instance.
The session.
The local channel number.
Size of the window.
Size of the packet.
Sends a SSH_MSG_CHANNEL_DATA message with the specified payload.
The payload to send.
Closes the channel.
Called when channel window need to be adjust.
The bytes to add.
Called when channel data is received.
The data.
Called when channel extended data is received.
The data.
The data type code.
Called when channel has no more data to receive.
Called when channel is closed by the server.
Called when channel request received.
Channel request information.
Called when channel request was successful
Called when channel request failed.
Raises event.
The exception.
Sends a message to the server.
The message to send.
true if the message was sent to the server; otherwise, false.
The size of the packet exceeds the maximum size defined by the protocol.
This methods returns false when the attempt to send the message results in a
or a .
Sends SSH message to the server.
The message.
Sends channel data message to the servers.
Channel data message.
When the data of the message exceeds the maximum packet size or the remote window
size does not allow the full message to be sent, then this method will send the
data in multiple chunks and will only wait for the remote window size to be adjusted
when its zero.
This is done to support SSH servers will a small window size that do not agressively
increase their window size. We need to take into account that there may be SSH
servers that only increase their window size when it has reached zero.
Sends channel extended data message to the servers.
Channel data message.
When the data of the message exceeds the maximum packet size or the remote window
size does not allow the full message to be sent, then this method will send the
data in multiple chunks and will only wait for the remote window size to be adjusted
when its zero.
This is done to support SSH servers will a small window size that do not agressively
increase their window size. We need to take into account that there may be SSH
servers that only increase their window size when it has reached zero.
Waits for the handle to be signaled or for an error to occurs.
The wait handle.
Closes the channel, optionally waiting for the SSH_MSG_CHANNEL_CLOSE message to
be received from the server.
true to wait for the SSH_MSG_CHANNEL_CLOSE message to be received from the server; otherwise, false.
Called when an occurs while processing a channel message.
The .
This method will in turn invoke , and
raise the event.
Determines the length of data that currently can be sent in a single message.
The length of the message that must be sent.
The actual data length that currently can be sent.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Occurs when an exception is thrown when processing channel messages.
Gets the session.
Thhe session.
Gets the type of the channel.
The type of the channel.
Gets the local channel number.
The local channel number.
Gets the maximum size of a packet.
The maximum size of a packet.
Gets the size of the local window.
The size of the local window.
Gets the remote channel number.
The remote channel number.
Gets the maximum size of a data packet that we can send using the channel.
The maximum size of data that can be sent using a
on the current channel.
The channel has not been opened, or the open has not yet been confirmed.
Gets the window size of the remote server.
The size of the server window.
Gets a value indicating whether this channel is open.
true if this channel is open; otherwise, false.
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Gets a value indicating whether the session is connected.
true if the session is connected; otherwise, false.
Gets the connection info.
The connection info.
Gets the session semaphore to control number of session channels
The session semaphore.
Implements "direct-tcpip" SSH channel.
Implements "direct-tcpip" SSH channel.
Initializes a new instance.
The session.
The local channel number.
Size of the window.
Size of the packet.
Called when channel is opened by the server.
The remote channel number.
Initial size of the window.
Maximum size of the packet.
Send message to open a channel.
Message to send
Called when channel failed to open.
The reason code.
The description.
The language.
Occurs when message is received.
Occurs when message received
Initializes a new instance.
The session.
The local channel number.
Size of the window.
Size of the packet.
Occurs as the forwarded port is being stopped.
Binds channel to remote host.
Closes the socket, hereby interrupting the blocking receive in .
Shuts down the socket.
One of the values that specifies the operation that will no longer be allowed.
Closes the channel, optionally waiting for the SSH_MSG_CHANNEL_CLOSE message to
be received from the server.
true to wait for the SSH_MSG_CHANNEL_CLOSE message to be received from the server; otherwise, false.
Called when channel data is received.
The data.
Called when channel is opened by the server.
The remote channel number.
Initial size of the window.
Maximum size of the packet.
Called when channel has no more data to receive.
Called whenever an unhandled occurs in causing
the message loop to be interrupted, or when an exception occurred processing a channel message.
Called when the server wants to terminate the connection immmediately.
The sender MUST NOT send or receive any data after this message, and
the recipient MUST NOT accept any data after receiving this message.
Gets the type of the channel.
The type of the channel.
Implements "forwarded-tcpip" SSH channel.
Implements "forwarded-tcpip" SSH channel.
Initializes a new instance.
The session.
The local channel number.
Size of the window.
Size of the packet.
The remote channel number.
The window size of the remote party.
The maximum size of a data packet that we can send to the remote party.
Initializes a new instance.
The session.
The local channel number.
Size of the window.
Size of the packet.
The remote channel number.
The window size of the remote party.
The maximum size of a data packet that we can send to the remote party.
Binds the channel to the specified endpoint.
The endpoint to connect to.
The forwarded port for which the channel is opened.
Occurs as the forwarded port is being stopped.
Shuts down the socket.
One of the values that specifies the operation that will no longer be allowed.
Closes the socket, hereby interrupting the blocking receive in .
Closes the channel, optionally waiting for the SSH_MSG_CHANNEL_CLOSE message to
be received from the server.
true to wait for the SSH_MSG_CHANNEL_CLOSE message to be received from the server; otherwise, false.
Called when channel data is received.
The data.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Gets the type of the channel.
The type of the channel.
Implements Session SSH channel.
Counts failed channel open attempts
Holds a value indicating whether the session semaphore has been obtained by the current
channel.
0 when the session semaphore has not been obtained or has already been released,
and 1 when the session has been obtained and still needs to be released.
Wait handle to signal when response was received to open the channel
Initializes a new instance.
The session.
The local channel number.
Size of the window.
Size of the packet.
Opens the channel.
Called when channel is opened by the server.
The remote channel number.
Initial size of the window.
Maximum size of the packet.
Called when channel failed to open.
The reason code.
The description.
The language.
Called when channel is closed by the server.
Sends the pseudo terminal request.
The environment variable.
The columns.
The rows.
The width.
The height.
The terminal mode values.
true if request was successful; otherwise false.
Sends the X11 forwarding request.
if set to true the it is single connection.
The protocol.
The cookie.
The screen number.
true if request was successful; otherwise false.
Sends the environment variable request.
Name of the variable.
The variable value.
true if request was successful; otherwise false.
Sends the shell request.
true if request was successful; otherwise false.
Sends the exec request.
The command.
true if request was successful; otherwise false.
Sends the exec request.
Length of the break.
true if request was successful; otherwise false.
Sends the subsystem request.
The subsystem.
true if request was successful; otherwise false.
Sends the window change request.
The columns.
The rows.
The width.
The height.
true if request was successful; otherwise false.
Sends the local flow request.
if set to true [client can do].
true if request was successful; otherwise false.
Sends the signal request.
Name of the signal.
true if request was successful; otherwise false.
Sends the exit status request.
The exit status.
true if request was successful; otherwise false.
Sends the exit signal request.
Name of the signal.
if set to true [core dumped].
The error message.
The language.
true if request was successful; otherwise false.
Sends eow@openssh.com request.
true if request was successful; otherwise false.
Sends keepalive@openssh.com request.
true if request was successful; otherwise false.
Called when channel request was successful
Called when channel request failed.
Sends the channel open message.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases the session semaphore.
When the session semaphore has already been released, or was never obtained by
this instance, then this method does nothing.
Gets the type of the channel.
The type of the channel.
Lists channel types as defined by the protocol.
session
x11
forwarded-tcpip
direct-tcpip
Holds information about key size and cipher to use
Initializes a new instance of the class.
Size of the key.
The cipher.
Gets the size of the key.
The size of the key.
Gets the cipher.
Implementation of ASCII Encoding
Initializes a new instance of the class.
Calculates the number of bytes produced by encoding a set of characters from the specified character array.
The character array containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
The number of bytes produced by encoding the specified characters.
is null. or is less than zero.-or- and do not denote a valid range in . A fallback occurred (see Understanding Encodings for complete explanation)-and- is set to .
Encodes a set of characters from the specified character array into the specified byte array.
The character array containing the set of characters to encode.
The index of the first character to encode.
The number of characters to encode.
The byte array to contain the resulting sequence of bytes.
The index at which to start writing the resulting sequence of bytes.
The actual number of bytes written into .
is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting bytes. A fallback occurred (see Understanding Encodings for complete explanation)-and- is set to .
Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
The number of characters produced by decoding the specified sequence of bytes.
is null. or is less than zero.-or- and do not denote a valid range in . A fallback occurred (see Understanding Encodings for complete explanation)-and- is set to .
Decodes a sequence of bytes from the specified byte array into the specified character array.
The byte array containing the sequence of bytes to decode.
The index of the first byte to decode.
The number of bytes to decode.
The character array to contain the resulting set of characters.
The index at which to start writing the resulting set of characters.
The actual number of characters written into .
is null.-or- is null. or or is less than zero.-or- and do not denote a valid range in .-or- is not a valid index in . does not have enough capacity from to the end of the array to accommodate the resulting characters. A fallback occurred (see Understanding Encodings for complete explanation)-and- is set to .
Calculates the maximum number of bytes produced by encoding the specified number of characters.
The number of characters to encode.
The maximum number of bytes produced by encoding the specified number of characters.
is less than zero. A fallback occurred (see Understanding Encodings for complete explanation)-and- is set to .
Calculates the maximum number of characters produced by decoding the specified number of bytes.
The number of bytes to decode.
The maximum number of characters produced by decoding the specified number of bytes.
is less than zero. A fallback occurred (see Understanding Encodings for complete explanation)-and- is set to .
Base class to encapsulates the results of an asynchronous operation.
Initializes a new instance of the class.
The async callback.
The state.
Marks asynchronous operation as completed.
The exception.
if set to true [completed synchronously].
Waits until the asynchronous operation completes, and then returns.
Gets or sets a value indicating whether EndInvoke has been called on the current AsyncResult.
true if EndInvoke has been called on the current AsyncResult; otherwise, false.
Gets a user-defined object that qualifies or contains information about an asynchronous operation.
A user-defined object that qualifies or contains information about an asynchronous operation.
Gets a value that indicates whether the asynchronous operation completed synchronously.
true if the asynchronous operation completed synchronously; otherwise, false.
Gets a that is used to wait for an asynchronous operation to complete.
A that is used to wait for an asynchronous operation to complete.
Gets a value that indicates whether the asynchronous operation has completed.
true if the operation is complete; otherwise, false.
Base class to encapsulates the results of an asynchronous operation that returns result.
The type of the result.
Initializes a new instance of the class.
The async callback.
The state.
Marks asynchronous operation as completed.
The result.
if set to true [completed synchronously].
Waits until the asynchronous operation completes, and then returns the value generated by the asynchronous operation.
Invocation result
Provides data for event.
Base class for authentication events.
Initializes a new instance of the class.
The username.
Gets the username.
Initializes a new instance of the class.
The username.
Banner message.
Banner language.
Gets banner message.
Gets banner language.
Provides data for event.
Initializes a new instance of the class.
The username.
Gets or sets the new password.
The new password.
Provides prompt information when is raised
Initializes a new instance of the class.
The sequence id.
if set to true the user input should be echoed.
The request.
Gets the prompt sequence id.
Gets or sets a value indicating whether the user input should be echoed as characters are typed.
true if the user input should be echoed as characters are typed; otherwise, false.
Gets server information request.
Gets or sets server information response.
The response.
Provides data for event.
Initializes a new instance of the class.
The username.
The instruction.
The language.
The information request prompts.
Gets prompt language.
Gets prompt instruction.
Gets server information request prompts.
Gets the list of authentication methods that were previously executed.
The list of authentication methods that were previously executed.
Gets the list of authentications methods that failed.
The list of authentications methods that failed.
Gets the list of supported authentication methods.
The list of supported authentication methods.
Represents an arbitrarily large signed integer.
Initializes a new instance of the struct.
The sign.
The data.
Initializes a new instance of the struct.
The value.
Initializes a new instance of the struct.
The value.
Initializes a new instance of the struct.
The value.
Initializes a new instance of the struct.
The value.
Initializes a new instance of the struct.
The value.
Initializes a new instance of the struct.
The value.
Initializes a new instance of the struct.
The value.
Initializes a new instance of the struct.
The value.
Defines an explicit conversion of a System.Numerics.BigInteger object to a 32-bit signed integer value.
The value to convert to a 32-bit signed integer.
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned 32-bit integer value.
The value to convert to an unsigned 32-bit integer.
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to a 16-bit signed integer value.
The value to convert to a 16-bit signed integer.
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned 16-bit integer value.
The value to convert to an unsigned 16-bit integer.
An object that contains the value of the value parameter
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned byte value.
The value to convert to a System.Byte.
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to a signed 8-bit value.
The value to convert to a signed 8-bit value.
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to a 64-bit signed integer value.
The value to convert to a 64-bit signed integer.
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to an unsigned 64-bit integer value.
The value to convert to an unsigned 64-bit integer.
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to a value.
The value to convert to a .
An object that contains the value of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to a single-precision floating-point value.
The value to convert to a single-precision floating-point value.
An object that contains the closest possible representation of the value parameter.
Defines an explicit conversion of a System.Numerics.BigInteger object to a value.
The value to convert to a .
An object that contains the value of the value parameter.
Defines an implicit conversion of a signed 32-bit integer to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an implicit conversion of a 32-bit unsigned integer to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an implicit conversion of a signed 16-bit integer to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an implicit conversion of a 16-bit unsigned integer to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an implicit conversion of an unsigned byte to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an implicit conversion of an 8-bit signed integer to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an implicit conversion of a signed 64-bit integer to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an implicit conversion of a 64-bit unsigned integer to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an explicit conversion of a value to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an explicit conversion of a object to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Defines an explicit conversion of a object to a System.Numerics.BigInteger value.
The value to convert to a System.Numerics.BigInteger.
An object that contains the value of the value parameter.
Adds the values of two specified objects.
The first value to add.
The second value to add.
The sum of left and right.
Subtracts a value from another value.
The value to subtract from (the minuend).
The value to subtract (the subtrahend).
The result of subtracting right from left.
Multiplies two specified values.
The first value to multiply.
The second value to multiply.
The product of left and right.
Divides a specified value by another specified value by using integer division.
The value to be divided.
The value to divide by.
The integral result of the division.
Returns the remainder that results from division with two specified values.
The value to be divided.
The value to divide by.
The remainder that results from the division.
Negates a specified BigInteger value.
The value to negate.
The result of the value parameter multiplied by negative one (-1).
Returns the value of the operand. (The sign of the operand is unchanged.)
An integer value.
The value of the value operand.
Increments a value by 1.
The value to increment.
The value of the value parameter incremented by 1.
Decrements a value by 1.
The value to decrement.
The value of the value parameter decremented by 1.
Performs a bitwise And operation on two values.
The first value.
The second value.
The result of the bitwise And operation.
Performs a bitwise Or operation on two values.
The first value.
The second value.
The result of the bitwise Or operation.
Performs a bitwise exclusive Or (XOr) operation on two values.
The first value.
The second value.
The result of the bitwise Or operation.
Returns the bitwise one's complement of a value.
An integer value.
The bitwise one's complement of value.
Shifts a value a specified number of bits to the left.
The value whose bits are to be shifted.
The number of bits to shift value to the left.
A value that has been shifted to the left by the specified number of bits.
Shifts a System.Numerics.BigInteger value a specified number of bits to the right.
The value whose bits are to be shifted.
The number of bits to shift value to the right.
A value that has been shifted to the right by the specified number of bits.
Returns a value that indicates whether a value is less than another value.
The first value to compare.
The second value to compare.
true if left is less than right; otherwise, false.
Returns a value that indicates whether a value is less than a 64-bit signed integer.
The first value to compare.
The second value to compare.
true if left is less than right; otherwise, false.
Returns a value that indicates whether a 64-bit signed integer is less than a value.
The first value to compare.
The second value to compare.
true if left is less than right; otherwise, false.
Returns a value that indicates whether a value is less than a 64-bit unsigned integer.
The first value to compare.
The second value to compare.
true if left is less than right; otherwise, false.
Returns a value that indicates whether a 64-bit unsigned integer is less than a value.
The first value to compare.
The second value to compare.
true if left is less than right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is less than or equal to another System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is less than or equal to right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is less than or equal to a 64-bit signed integer.
The first value to compare.
The second value to compare.
true if left is less than or equal to right; otherwise, false.
Returns a value that indicates whether a 64-bit signed integer is less than or equal to a System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is less than or equal to right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is less than or equal to a 64-bit unsigned integer.
The first value to compare.
The second value to compare.
true if left is less than or equal to right; otherwise, false.
Returns a value that indicates whether a 64-bit unsigned integer is less than or equal to a System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is less than or equal to right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than another System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is greater than right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger is greater than a 64-bit signed integer value.
The first value to compare.
The second value to compare.
true if left is greater than right; otherwise, false.
Returns a value that indicates whether a 64-bit signed integer is greater than a System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is greater than right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than a 64-bit unsigned integer.
The first value to compare.
The second value to compare.
true if left is greater than right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than a 64-bit unsigned integer.
The first value to compare.
The second value to compare.
true if left is greater than right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than or equal to another System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is greater than or equal right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than or equal to a 64-bit signed integer value.
The first value to compare.
The second value to compare.
true if left is greater than or equal right; otherwise, false.
Returns a value that indicates whether a 64-bit signed integer is greater than or equal to a System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is greater than or equal right; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value is greater than or equal to a 64-bit unsigned integer value.
The first value to compare.
The second value to compare.
true if left is greater than or equal right; otherwise, false.
Returns a value that indicates whether a 64-bit unsigned integer is greater than or equal to a System.Numerics.BigInteger value.
The first value to compare.
The second value to compare.
true if left is greater than or equal right; otherwise, false.
Returns a value that indicates whether the values of two System.Numerics.BigInteger objects are equal.
The first value to compare.
The second value to compare.
true if the left and right parameters have the same value; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value and a signed long integer value are equal.
The first value to compare.
The second value to compare.
true if the left and right parameters have the same value; otherwise, false.
Returns a value that indicates whether a signed long integer value and a System.Numerics.BigInteger value are equal.
The first value to compare.
The second value to compare.
true if the left and right parameters have the same value; otherwise, false.
Returns a value that indicates whether a System.Numerics.BigInteger value and an unsigned long integer value are equal.
The first value to compare.
The second value to compare.
true if the left and right parameters have the same value; otherwise, false.
Returns a value that indicates whether an unsigned long integer value and a System.Numerics.BigInteger value are equal.
The first value to compare.
The second value to compare.
true if the left and right parameters have the same value; otherwise, false.
Returns a value that indicates whether two objects have different values.
The first value to compare.
The second value to compare.
true if left and right are not equal; otherwise, false.
Returns a value that indicates whether a value and a 64-bit signed integer are not equal.
The first value to compare.
The second value to compare.
true if left and right are not equal; otherwise, false.
Returns a value that indicates whether a 64-bit signed integer and a value are not equal.
The first value to compare.
The second value to compare.
true if left and right are not equal; otherwise, false.
Returns a value that indicates whether a value and a 64-bit unsigned integer are not equal.
The first value to compare.
The second value to compare.
true if left and right are not equal; otherwise, false.
Returns a value that indicates whether a 64-bit unsigned integer and a value are not equal.
The first value to compare.
The second value to compare.
true if left and right are not equal; otherwise, false.
Gets the absolute value of a System.Numerics.BigInteger object.
A number.
The absolute value of value.
Adds two System.Numerics.BigInteger values and returns the result.
The first value to add.
The second value to add.
The sum of left and right.
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
An object to compare with this instance.
A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than . Zero This instance is equal to . Greater than zero This instance is greater than .
is not the same type as this instance.
Compares this instance to a second System.Numerics.BigInteger and returns
an integer that indicates whether the value of this instance is less than,
equal to, or greater than the value of the specified object.
The object to compare.
A signed integer value that indicates the relationship of this instance to
other, as shown in the following table.Return valueDescriptionLess than zeroThe
current instance is less than other.ZeroThe current instance equals other.Greater
than zeroThe current instance is greater than other.
Compares this instance to an unsigned 64-bit integer and returns an integer
that indicates whether the value of this instance is less than, equal to,
or greater than the value of the unsigned 64-bit integer.
The unsigned 64-bit integer to compare.
A signed integer that indicates the relative value of this instance and other,
as shown in the following table.Return valueDescriptionLess than zeroThe
current instance is less than other.ZeroThe current instance equals other.Greater
than zeroThe current instance is greater than other.
Generates random BigInteger number
Length of random number in bits.
Big random number.
Divides one System.Numerics.BigInteger value by another and returns the result.
The value to be divided.
The value to divide by.
The quotient of the division.
Divides one System.Numerics.BigInteger value by another, returns the result, and returns the remainder in an output parameter.
The value to be divided.
The value to divide by.
When this method returns, contains a System.Numerics.BigInteger value that
represents the remainder from the division. This parameter is passed uninitialized.
The quotient of the division.
Returns a value that indicates whether the current instance and a specified System.Numerics.BigInteger object have the same value.
The object to compare.
true if this System.Numerics.BigInteger object and other have the same value; otherwise, false.
Returns a value that indicates whether the current instance and a signed 64-bit integer have the same value.
The signed 64-bit integer value to compare.
true if the signed 64-bit integer and the current instance have the same value; otherwise, false.
Returns a value that indicates whether the current instance and a specified object have the same value.
The object to compare.
true if the obj parameter is a System.Numerics.BigInteger object or a type
capable of implicit conversion to a System.Numerics.BigInteger value, and
its value is equal to the value of the current System.Numerics.BigInteger
object; otherwise, false.
Returns a value that indicates whether the current instance and an unsigned 64-bit integer have the same value.
The unsigned 64-bit integer to compare.
true if the current instance and the unsigned 64-bit integer have the same value; otherwise, false.
Returns the hash code for the current System.Numerics.BigInteger object.
A 32-bit signed integer hash code.
Finds the greatest common divisor of two System.Numerics.BigInteger values.
The first value.
The second value.
The greatest common divisor of left and right.
Returns the logarithm of a specified number in a specified base.
A number whose logarithm is to be found.
The base of the logarithm.
The base baseValue logarithm of value, as shown in the table in the Remarks section.
Returns the natural (base e) logarithm of a specified number.
The number whose logarithm is to be found.
The natural (base e) logarithm of value, as shown in the table in the Remarks section.
Returns the base 10 logarithm of a specified number.
A number whose logarithm is to be found.
The base 10 logarithm of value, as shown in the table in the Remarks section.
Returns the larger of two System.Numerics.BigInteger values.
The first value to compare.
The second value to compare.
The left or right parameter, whichever is larger.
Returns the smaller of two System.Numerics.BigInteger values.
The first value to compare.
The second value to compare.
The left or right parameter, whichever is smaller.
Performs modulus division on a number raised to the power of another number.
The number to raise to the exponent power.
The exponent to raise value by.
The value to divide valueexponent by.
The remainder after dividing valueexponent by modulus.
Mods the inverse.
The bi.
The modulus.
Modulus inverted number.
Returns positive remainder that results from division with two specified values.
The value to be divided.
The value to divide by.
Positive remainder that results from the division.
Returns the product of two System.Numerics.BigInteger values.
The first number to multiply.
The second number to multiply.
The product of the left and right parameters.
Negates a specified System.Numerics.BigInteger value.
The value to negate.
The result of the value parameter multiplied by negative one (-1).
Converts the string representation of a number in a specified style and culture-specific format to its equivalent.
A string that contains a number to convert.
A bitwise combination of the enumeration values that specify the permitted format of value.
An object that provides culture-specific formatting information about value.
Parsed number
Converts the string representation of a number in a specified culture-specific format to its System.Numerics.BigInteger equivalent.
A string that contains a number to convert.
An object that provides culture-specific formatting information about value.
A value that is equivalent to the number specified in the value parameter.
Converts the string representation of a number in a specified style to its System.Numerics.BigInteger equivalent.
A string that contains a number to convert.
A bitwise combination of the enumeration values that specify the permitted format of value.
A value that is equivalent to the number specified in the value parameter.
Raises a System.Numerics.BigInteger value to the power of a specified value.
The number to raise to the exponent power.
The exponent to raise value by.
The result of raising value to the exponent power.
Performs integer division on two System.Numerics.BigInteger values and returns the remainder.
The value to be divided.
The value to divide by.
The remainder after dividing dividend by divisor.
Subtracts one System.Numerics.BigInteger value from another and returns the result.
The value to subtract from (the minuend).
The value to subtract (the subtrahend).
The result of subtracting right from left.
Converts a System.Numerics.BigInteger value to a byte array.
The value of the current System.Numerics.BigInteger object converted to an array of bytes.
Converts the numeric value of the current System.Numerics.BigInteger object to its equivalent string representation.
The string representation of the current System.Numerics.BigInteger value.
Converts the numeric value of the current System.Numerics.BigInteger object
to its equivalent string representation by using the specified culture-specific
formatting information.
An object that supplies culture-specific formatting information.
The string representation of the current System.Numerics.BigInteger value
in the format specified by the provider parameter.
Converts the numeric value of the current System.Numerics.BigInteger object
to its equivalent string representation by using the specified format.
A standard or custom numeric format string.
The string representation of the current System.Numerics.BigInteger value
in the format specified by the format parameter.
Converts the numeric value of the current System.Numerics.BigInteger object
to its equivalent string representation by using the specified format and
culture-specific format information.
A standard or custom numeric format string.
An object that supplies culture-specific formatting information.
The string representation of the current System.Numerics.BigInteger value
as specified by the format and provider parameters.
Tries to convert the string representation of a number in a specified style
and culture-specific format to its System.Numerics.BigInteger equivalent,
and returns a value that indicates whether the conversion succeeded.
The string representation of a number. The string is interpreted using the style specified by style.
A bitwise combination of enumeration values that indicates the style elements
that can be present in value. A typical value to specify is System.Globalization.NumberStyles.Integer.
An object that supplies culture-specific formatting information about value.
When this method returns, contains the System.Numerics.BigInteger equivalent
to the number that is contained in value, or System.Numerics.BigInteger.Zero
if the conversion failed. The conversion fails if the value parameter is
null or is not in a format that is compliant with style. This parameter is
passed uninitialized.
true if the value parameter was converted successfully; otherwise, false.
Tries to convert the string representation of a number to its System.Numerics.BigInteger
equivalent, and returns a value that indicates whether the conversion succeeded.
The string representation of a number.
When this method returns, contains the System.Numerics.BigInteger equivalent
to the number that is contained in value, or zero (0) if the conversion fails.
The conversion fails if the value parameter is null or is not of the correct
format. This parameter is passed uninitialized.
true if value was converted successfully; otherwise, false.
Compares this instance to a signed 64-bit integer and returns an integer
that indicates whether the value of this instance is less than, equal to,
or greater than the value of the signed 64-bit integer.
The signed 64-bit integer to compare.
A signed integer value that indicates the relationship of this instance to
other, as shown in the following table.Return valueDescriptionLess than zeroThe
current instance is less than other.ZeroThe current instance equals other.Greater
than zero.The current instance is greater than other.
Compares two System.Numerics.BigInteger values and returns an integer that
indicates whether the first value is less than, equal to, or greater than the second value.
The first value to compare.
The second value to compare.
A signed integer that indicates the relative values of left and right,
as shown in the following table.ValueConditionLess than zeroleft is less than right.Zeroleft
equals right.Greater than zeroleft is greater than right.
Populations the count.
The x.
Returns the number of bits set in x
Returns the 0-based index of the most significant set bit
The word.
0 if no bit is set
Gets number of bits used by the number.
The number of the bit used.
Indicates whether the value of the current System.Numerics.BigInteger object is an even number.
true if the value of the System.Numerics.BigInteger object is an even number; otherwise, false.
Indicates whether the value of the current System.Numerics.BigInteger object is System.Numerics.BigInteger.One.
true if the value of the System.Numerics.BigInteger object is System.Numerics.BigInteger.One; otherwise, false.
Indicates whether the value of the current System.Numerics.BigInteger object is a power of two.
true if the value of the System.Numerics.BigInteger object is a power of two; otherwise, false.
Indicates whether the value of the current System.Numerics.BigInteger object is System.Numerics.BigInteger.Zero.
true if the value of the System.Numerics.BigInteger object is System.Numerics.BigInteger.Zero; otherwise, false.
Gets a value that represents the number negative one (-1).
Gets a value that represents the number one (1).
Gets a number that indicates the sign (negative, positive, or zero) of the current System.Numerics.BigInteger object.
Gets a value that represents the number 0 (zero).
Provides data for event and events.
Base class for all channel related events.
Initializes a new instance of the class.
The channel number.
Gets the channel number.
Initializes a new instance of the class.
Channel number.
Channel data.
Initializes a new instance of the class.
Channel number.
Channel data.
Channel data type code.
Gets channel data.
Gets the data type code.
Provides data for event.
Initializes a new instance of the class.
The remote channel number.
The initial window size.
The maximum packet size.
Gets the initial size of the window.
The initial size of the window.
Gets the maximum size of the packet.
The maximum size of the packet.
Provides data for event.
Initializes a new instance of the class.
Channel number.
Failure reason code.
Failure description.
Failure language.
Gets failure reason code.
Gets failure description.
Gets failure language.
Provides data for event.
Initializes a new instance of the class.
Request information.
Gets request information.
Collection of different extension method specific for .NET 4.0
Collection of different extension method
Determines whether [is null or white space] [the specified value].
The value.
true if [is null or white space] [the specified value]; otherwise, false.
Checks whether a collection is the same as another collection
The current instance object
The collection to compare with
The comparer object to use to compare each item in the collection. If null uses EqualityComparer(T).Default
True if the two collections contain all the same items in the same order
Checks whether a collection is the same as another collection
The current instance object
The collection to compare with
True if the two collections contain all the same items in the same order
Prints out
The bytes.
Trims the leading zero from bytes array.
The data.
Data without leading zeros.
Creates an instance of the specified type using that type's default constructor.
The type to create.
Type of the instance to create.
A reference to the newly created object.
Returns the specified 16-bit unsigned integer value as an array of bytes.
The number to convert.
An array of bytes with length 2.
Returns the specified 32-bit unsigned integer value as an array of bytes.
The number to convert.
An array of bytes with length 4.
Returns the specified 64-bit unsigned integer value as an array of bytes.
The number to convert.
An array of bytes with length 8.
Returns the specified 64-bit signed integer value as an array of bytes.
The number to convert.
An array of bytes with length 8.
The exception that is thrown when SCP error occurred.
The exception that is thrown when SSH exception occurs.
The exception that is thrown when SSH exception occurs.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
Provides data for the HostKeyReceived event.
Initializes a new instance of the class.
The host.
Gets or sets a value indicating whether host key can be trusted.
true if host key can be trusted; otherwise, false.
Gets the host key.
Gets the host key name.
Gets the finger print.
Gets the length of the key in bits.
The length of the key in bits.
The exception that is thrown when there is something wrong with the server capabilities.
The exception that is thrown when there is something wrong with the server capabilities.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Base class for DER encoded data.
Initializes a new instance of the class.
Initializes a new instance of the class.
DER encoded data.
Encodes written data as DER byte array.
DER Encoded array.
Reads next mpint data type from internal buffer.
mpint read.
Reads next int data type from internal buffer.
int read.
Writes BOOLEAN data into internal buffer.
UInt32 data to write.
Writes UInt32 data into internal buffer.
UInt32 data to write.
Writes INTEGER data into internal buffer.
BigInteger data to write.
Writes OCTETSTRING data into internal buffer.
The data.
Writes OBJECTIDENTIFIER data into internal buffer.
The identifier.
Writes NULL data into internal buffer.
Writes DerData data into internal buffer.
DerData data to write.
Gets a value indicating whether end of data is reached.
true if end of data is reached; otherwise, false.
Provides data for the ErrorOccured events.
Initializes a new instance of the class.
An System.Exception that represents the error that occurred.
Gets the System.Exception that represents the error that occurred.
Describes object identifier for DER encoding
Initializes a new instance of the class.
The identifiers.
Gets the object identifier.
PipeStream is a thread-safe read/write data stream for use between two threads in a
single-producer/single-consumer type problem.
2006/10/13 1.0Update on 2008/10/9 1.1 - uses Monitor instead of Manual Reset events for more elegant synchronicity.
Copyright (c) 2006 James Kolpack (james dot kolpack at google mail)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Queue of bytes provides the datastructure for transmitting from an
input stream to an output stream.
Possible more effecient ways to accomplish this.
Indicates that the input stream has been flushed and that
all remaining data should be written to the output stream.
Maximum number of bytes to store in the buffer.
Setting this to true will cause Read() to block if it appears
that it will run out of data.
When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
An I/O error occurs. 2
When overridden in a derived class, sets the position within the current stream.
The new position within the current stream.
A byte offset relative to the origin parameter.
A value of type indicating the reference point used to obtain the new position.
An I/O error occurs. The stream does not support seeking, such as if the stream is constructed from a pipe or console output. Methods were called after the stream was closed. 1
When overridden in a derived class, sets the length of the current stream.
The desired length of the current stream in bytes.
The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output. An I/O error occurs. Methods were called after the stream was closed. 2
When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
The maximum number of bytes to be read from the current stream.
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.
The sum of offset and count is larger than the buffer length. Methods were called after the stream was closed. The stream does not support reading. buffer is null. An I/O error occurs. offset or count is negative. 1
Returns true if there are
The count.
True if data available; otherwisefalse.
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
The number of bytes to be written to the current stream.
An array of bytes. This method copies count bytes from buffer to the current stream.
An I/O error occurs. The stream does not support writing. Methods were called after the stream was closed. buffer is null. The sum of offset and count is greater than the buffer length. offset or count is negative. 1
Gets or sets the maximum number of bytes to store in the buffer.
The length of the max buffer.
Gets or sets a value indicating whether to block last read method before the buffer is empty.
When true, Read() will block until it can fill the passed in buffer and count.
When false, Read() will not block, returning all the available buffer data.
Setting to true will remove the possibility of ending a stream reader prematurely.
true if block last read method before the buffer is empty; otherwise, false.
When overridden in a derived class, gets a value indicating whether the current stream supports reading.
true if the stream supports reading; otherwise, false.
1
When overridden in a derived class, gets a value indicating whether the current stream supports seeking.
true if the stream supports seeking; otherwise, false.
1
When overridden in a derived class, gets a value indicating whether the current stream supports writing.
true if the stream supports writing; otherwise, false.
1
When overridden in a derived class, gets the length in bytes of the stream.
A long value representing the length of the stream in bytes.
A class derived from Stream does not support seeking. Methods were called after the stream was closed. 1
When overridden in a derived class, gets or sets the position within the current stream.
The current position within the stream.
An I/O error occurs. The stream does not support seeking. Methods were called after the stream was closed. 1
Provides data for event.
Initializes a new instance of the class.
The host.
The port.
is null. is not within and .
Gets request originator host.
Gets request originator port.
Provides data for the Downloading event.
Initializes a new instance of the class.
The downloaded filename.
The downloaded file size.
The number of downloaded bytes so far.
Gets the downloaded filename.
Gets the downloaded file size.
Gets number of downloaded bytes so far.
The exception that is thrown when SCP error occurred.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
Provides data for the Uploading event.
Initializes a new instance of the class.
The uploaded filename.
The the uploaded file size.
The number of uploaded bytes so far.
Gets the uploaded filename.
Gets the uploaded file size.
Gets number of uploaded bytes so far.
Light implementation of SemaphoreSlim.
Initializes a new instance of the class, specifying
the initial number of requests that can be granted concurrently.
The initial number of requests for the semaphore that can be granted concurrently.
is a negative number.
Exits the once.
The previous count of the .
Exits the a specified number of times.
The number of times to exit the semaphore.
The previous count of the .
Blocks the current thread until it can enter the .
Gets the current count of the .
The exception that is thrown when file or directory is not found.
The exception that is thrown when file or directory is not found.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
The exception that is thrown when operation permission is denied.
The exception that is thrown when operation permission is denied.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
Provides data for Shell DataReceived event
Initializes a new instance of the class.
The data.
Initializes a new instance of the class.
The line.
Gets the data.
Gets the line data.
The exception that is thrown when authentication failed.
The exception that is thrown when authentication failed.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
The exception that is thrown when connection was terminated.
The exception that is thrown when connection was terminated.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The disconnect reason code.
Initializes a new instance of the class.
The message.
The disconnect reason code.
The inner.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
Gets the disconnect reason if provided by the server or client. Otherwise None.
Base ssh data serialization type
Data byte array that hold message unencrypted data
Gets data bytes array
Byte array representation of data structure.
Loads data from specified bytes.
Bytes array.
is null.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Loads data bytes into internal buffer.
The bytes.
is null.
Resets internal data reader index.
Reads all data left in internal buffer at current position.
An array of bytes containing the remaining data in the internal buffer.
Reads next specified number of bytes data type from internal buffer.
Number of bytes to read.
An array of bytes that was read from the internal buffer. is greater than the internal buffer size.
Reads next byte data type from internal buffer.
Byte read.
Reads next boolean data type from internal buffer.
Boolean read.
Reads next uint16 data type from internal buffer.
uint16 read
Reads next uint32 data type from internal buffer.
uint32 read
Reads next uint64 data type from internal buffer.
uint64 read
Reads next int64 data type from internal buffer.
int64 read
Reads next string data type from internal buffer.
string read
Reads next string data type from internal buffer.
string read
Reads next string data type from internal buffer.
string read
Reads next string data type from internal buffer.
string read
Reads next mpint data type from internal buffer.
mpint read.
Reads next name-list data type from internal buffer.
String array or read data..
Reads next extension-pair data type from internal buffer.
Extensions pair dictionary.
Writes bytes array data into internal buffer.
Byte array data to write.
is null.
Writes byte data into internal buffer.
Byte data to write.
Writes boolean data into internal buffer.
Boolean data to write.
Writes uint16 data into internal buffer.
uint16 data to write.
Writes uint32 data into internal buffer.
uint32 data to write.
Writes uint64 data into internal buffer.
uint64 data to write.
Writes int64 data into internal buffer.
int64 data to write.
Writes string data into internal buffer as ASCII.
string data to write.
Writes string data into internal buffer using default encoding.
string data to write.
is null.
Writes string data into internal buffer using the specified encoding.
string data to write.
The character encoding to use.
is null. is null.
Writes string data into internal buffer.
string data to write.
is null.
Writes mpint data into internal buffer.
mpint data to write.
Writes name-list data into internal buffer.
name-list data to write.
Writes extension-pair data into internal buffer.
extension-pair data to write.
Gets a value indicating whether all data from the buffer has been read.
true if this instance is end of data; otherwise, false.
Gets the index that represents zero in current data type.
The index of the zero reader.
The exception that is thrown when operation is timed out.
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
The exception that is thrown when pass phrase for key file is empty or null
The exception that is thrown when pass phrase for key file is empty or null
Initializes a new instance of the class.
Initializes a new instance of the class.
The message.
Initializes a new instance of the class.
The message.
The inner exception.
Initializes a new instance of the class.
The that holds the serialized object data about the exception being thrown.
The that contains contextual information about the source or destination.
The parameter is null. The class name is null or is zero (0).
Specifies the initial assignments of the opcode values that are used in the 'encoded terminal modes' valu
Indicates end of options.
Interrupt character; 255 if none. Similarly for the other characters. Not all of these characters are supported on all systems.
The quit character (sends SIGQUIT signal on POSIX systems).
Erase the character to left of the cursor.
Kill the current input line.
End-of-file character (sends EOF from the terminal).
End-of-line character in addition to carriage return and/or linefeed.
Additional end-of-line character.
Continues paused output (normally control-Q).
Pauses output (normally control-S).
Suspends the current program.
Another suspend character.
Reprints the current input line.
Erases a word left of cursor.
Enter the next character typed literally, even if it is a special character
Character to flush output.
Switch to a different shell layer.
Prints system status line (load, command, pid, etc).
Toggles the flushing of terminal output.
The ignore parity flag. The parameter SHOULD be 0 if this flag is FALSE, and 1 if it is TRUE.
Mark parity and framing errors.
Enable checking of parity errors.
Strip 8th bit off characters.
Map NL into CR on input.
Ignore CR on input.
Map CR to NL on input.
Translate uppercase characters to lowercase.
Enable output flow control.
Any char will restart after stop.
Enable input flow control.
Ring bell on input queue full.
Enable signals INTR, QUIT, [D]SUSP.
Canonicalize input lines.
Enable input and output of uppercase characters by preceding their lowercase equivalents with "\".
Enable echoing.
Visually erase chars.
Kill character discards current line.
Echo NL even if ECHO is off.
Don't flush after interrupt.
Stop background jobs from output.
Enable extensions.
Echo control characters as ^(Char).
Visual erase for line kill.
Retype pending input.
Enable output processing.
Convert lowercase to uppercase.
Map NL to CR-NL.
Translate carriage return to newline (output).
Translate newline to carriage return-newline (output).
Newline performs a carriage return (output).
7 bit mode.
8 bit mode.
Parity enable.
Odd parity, else even.
Specifies the input baud rate in bits per second.
Specifies the output baud rate in bits per second.
Specifies compression modes
Specifies that content should be compressed.
Specifies that content should be decompressed.
Represents base class for compression algorithm implementation
Represents the abstract base class from which all implementations of algorithms must inherit.
Gets algorithm name.
Initializes a new instance of the class.
Initializes the algorithm
The session.
Compresses the specified data.
Data to compress.
Compressed data
Decompresses the specified data.
Compressed data.
Decompressed data.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets or sets a value indicating whether compression is active.
true if compression is active; otherwise, false.
Gets the session.
Represents "zlib" compression implementation
Initializes the algorithm
The session.
Gets algorithm name.
Represents "zlib@openssh.org" compression implementation
Initializes the algorithm
The session.
Gets algorithm name.
Implements Zlib compression algorithm.
Initializes a new instance of the class.
The stream.
The mode.
Writes the specified buffer.
The buffer.
The offset.
The count.
Represents remote connection information class.
This class is NOT thread-safe. Do not use the same with multiple
client instances.
Represents remote connection information.
Gets the supported channel requests for this connection.
The supported channel requests for this connection.
Gets the character encoding.
The character encoding.
Gets the number of retry attempts when session channel creation failed.
The number of retry attempts when session channel creation failed.
Gets or sets connection timeout.
The connection timeout. The default value is 30 seconds.
Occurs when authentication banner is sent by the server.
Signals that an authentication banner message was received from the server.
The session in which the banner message was received.
The banner message.{
Creates a for the credentials represented
by the current .
A for the credentials represented by the
current .
Gets the supported authentication methods for this connection.
The supported authentication methods for this connection.
Initializes a new instance of the class.
The host.
The username.
The authentication methods.
is null. is a zero-length string. is null, a zero-length string or contains only whitespace characters. is null.No specified.
Initializes a new instance of the class.
The host.
The port.
The username.
The authentication methods.
is null. is null, a zero-length string or contains only whitespace characters. is not within and . is null.No specified.
Initializes a new instance of the class.
Connection host.
Connection port.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
The authentication methods.
is null. is null, a zero-length string or contains only whitespace characters. is not within and . is not and is null. is not and is not within and . is null.No specified.
Authenticates the specified session.
The session to be authenticated.
is null.No suitable authentication method found to complete authentication, or permission denied.
Signals that an authentication banner message was received from the server.
The session in which the banner message was received.
The banner message.{
Gets supported key exchange algorithms for this connection.
Gets supported encryptions for this connection.
Gets supported hash algorithms for this connection.
Gets supported host key algorithms for this connection.
Gets supported authentication methods for this connection.
Gets supported compression algorithms for this connection.
Gets the supported channel requests for this connection.
The supported channel requests for this connection.
Gets a value indicating whether connection is authenticated.
true if connection is authenticated; otherwise, false.
Gets connection host.
Gets connection port.
The connection port. The default value is 22.
Gets connection username.
Gets proxy type.
The type of the proxy.
Gets proxy connection host.
Gets proxy connection port.
Gets proxy connection username.
Gets proxy connection password.
Gets or sets connection timeout.
The connection timeout. The default value is 30 seconds.
Gets or sets the character encoding.
The character encoding. The default is .
Gets or sets number of retry attempts when session channel creation failed.
The number of retry attempts when session channel creation failed. The default
value is 10.
Gets or sets maximum number of session channels to be open simultaneously.
The maximum number of session channels to be open simultaneously. The default
value is 10.
Occurs when authentication banner is sent by the server.
Gets the current key exchange algorithm.
Gets the current server encryption.
Gets the current client encryption.
Gets the current server hash algorithm.
Gets the current client hash algorithm.
Gets the current host key algorithm.
Gets the current server compression algorithm.
Gets the server version.
Get the client version.
Gets the current client compression algorithm.
Provides functionality for remote port forwarding
Provides functionality for remote port forwarding
Provides functionality for remote port forwarding
Base class for port forwarding functionality.
Supports port forwarding functionality.
The event occurs as the forwarded port is being stopped.
Starts port forwarding.
Stops port forwarding.
Starts port forwarding.
Stops port forwarding, and waits for the specified timeout until all pending
requests are processed.
The maximum amount of time to wait for pending requests to finish processing.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Ensures the current instance is not disposed.
The current instance is disposed.
Raises event.
The exception.
Raises event.
Request originator host.
Request originator port.
Raises the event.
Handles session ErrorOccured event.
The source of the event.
The instance containing the event data.
Gets or sets the session.
The session.
The event occurs as the forwarded port is being stopped.
The event occurs as the forwarded port is being stopped.
Gets or sets a value indicating whether port forwarding is started.
true if port forwarding is started; otherwise, false.
Occurs when an exception is thrown.
Occurs when a port forwarding request is received.
Initializes a new instance of the class.
The bound port.
The host.
The port.
Initializes a new instance of the class.
The bound host.
The bound port.
The host.
The port.
Initializes a new instance of the class.
The bound host address.
The bound port.
The host address.
The port.
is null. is null. is greater than . is greater than .
Starts remote port forwarding.
Stops remote port forwarding.
The maximum amount of time to wait for pending requests to finish processing.
Ensures the current instance is not disposed.
The current instance is disposed.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Executes the specified action in a separate thread.
The action to execute.
Gets or sets a value indicating whether port forwarding is started.
true if port forwarding is started; otherwise, false.
Gets the bound host.
Gets the bound host.
Gets the bound port.
Gets the forwarded host.
Gets the forwarded host.
Gets the forwarded port.
Holds information about key size and cipher to use
Initializes a new instance of the class.
Size of the key.
The hash algorithm to use for a given key.
Gets the size of the key.
The size of the key.
Gets the cipher.
Factory for creating new services.
Creates a new with the specified .
The to use for creating a new session.
An for the specified .
is null.
Creates a new in a given and with
the specified operation timeout and encoding.
The to create the in.
The operation timeout.
The encoding.
An .
Create a new .
A .
Creates a new in a given
and with the specified operation timeout.
The to create the in.
The operation timeout.
An .
Provides functionality to connect and interact with SSH server.
Connects to the server.
Socket connection to the SSH server or proxy server could not be established, or an error occurred while resolving the hostname.SSH session could not be established.Authentication of SSH session failed.Failed to establish proxy connection.
Create a new SSH session channel.
A new SSH session channel.
Create a new channel for a locally forwarded TCP/IP port.
A new channel for a locally forwarded TCP/IP port.
Creates a "forwarded-tcpip" SSH channel.
A new "forwarded-tcpip" SSH channel.
Disconnects from the server.
This sends a SSH_MSG_DISCONNECT message to the server, waits for the
server to close the socket on its end and subsequently closes the client socket.
Called when client is disconnecting from the server.
Registers SSH message with the session.
The name of the message to register with the session.
Sends a message to the server.
The message to send.
The client is not connected.The operation timed out.The size of the packet exceeds the maximum size defined by the protocol.
Sends a message to the server.
The message to send.
true if the message was sent to the server; otherwise, false.
The size of the packet exceeds the maximum size defined by the protocol.
This methods returns false when the attempt to send the message results in a
or a .
Unregister SSH message from the session.
The name of the message to unregister with the session.
Waits for the specified handle or the exception handle for the receive thread
to signal within the connection timeout.
The wait handle.
A received package was invalid or failed the message integrity check.None of the handles are signaled in time and the session is not disconnecting.A socket error was signaled while receiving messages from the server.
When neither handles are signaled in time and the session is not closing, then the
session is disconnected.
Waits for the specified handle or the exception handle for the receive thread
to signal within the specified timeout.
The wait handle.
The time to wait for any of the handles to become signaled.
A received package was invalid or failed the message integrity check.None of the handles are signaled in time and the session is not disconnecting.A socket error was signaled while receiving messages from the server.
When neither handles are signaled in time and the session is not closing, then the
session is disconnected.
Gets or sets the connection info.
The connection info.
Gets a value indicating whether the session is connected.
true if the session is connected; otherwise, false.
Gets the session semaphore that controls session channels.
The session semaphore.
Gets a that can be used to wait for the message listener loop to complete.
A that can be used to wait for the message listener loop to complete, or
null when the session has not been connected.
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when session has been disconnected from the server.
Occurs when an error occurred.
Occurs when host key received.
Occurs when message received
Occurs when message received
Occurs when message is received from the server.
Base interface for SSH subsystem implementations.
Connects the subsystem using a new SSH channel session.
The session is already connected.The method was called after the session was disposed.
Disconnects the subsystem channel.
Waits a specified time for a given to get signaled.
The handle to wait for.
The time to wait for to get signaled.
The connection was closed by the server.The channel was closed.The handle did not get signaled within the specified .
Gets a value indicating whether this session is open.
true if this session is open; otherwise, false.
Represents SSH_MSG_KEXECDH_INIT message.
Base class for all SSH protocol messages
Gets data bytes array
Byte array representation of the message
Returns a that represents this instance.
A that represents this instance.
Gets the index that represents zero in current data type.
The index of the zero reader.
Indicates that message that implement this interface is allowed during key exchange phase
Initializes a new instance of the class.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the client's ephemeral contribution to the ECDH exchange, encoded as an octet string
Represents SSH_MSG_KEXECDH_REPLY message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets a string encoding an X.509v3 certificate containing the server's ECDSA public host key
The host key.
Gets the the server's ephemeral contribution to the ECDH exchange, encoded as an octet string.
Gets the an octet string containing the server's signature of the newly established exchange hash value.
The signature.
Gets the NetConf server capabilities.
The NetConf server capabilities.
Gets the NetConf client capabilities.
The NetConf client capabilities.
Initializes an implementation of the class.
Initializes a new instance of the class.
Reset the chaining variables to the IV values.
Rounds 0-15
The x.
The y.
The z.
Rounds 16-31
The x.
The y.
The z.
ounds 32-47
The x.
The y.
The z.
Rounds 48-63
The x.
The y.
The z.
ounds 64-79
The x.
The y.
The z.
Gets the size, in bits, of the computed hash code.
The size, in bits, of the computed hash code.
Gets the input block size.
The input block size.
Gets the output block size.
The output block size.
Gets a value indicating whether the current transform can be reused.
Always true.
Gets a value indicating whether multiple blocks can be transformed.
true if multiple blocks can be transformed; otherwise, false.
SHA256 algorithm implementation.
Initializes a new instance of the class.
Adjust the byte counts so that byteCount2 represents the upper long (less 3 bits) word of the byte count.
Gets a value indicating whether the current transform can be reused.
Always true.
Gets a value indicating whether multiple blocks can be transformed.
true if multiple blocks can be transformed; otherwise, false.
Gets the size, in bits, of the computed hash code.
The size, in bits, of the computed hash code.
When overridden in a derived class, gets the input block size.
The input block size.
When overridden in a derived class, gets the output block size.
The output block size.
Gets the size, in bits, of the computed hash code.
The size, in bits, of the computed hash code.
When overridden in a derived class, gets the input block size.
The input block size.
When overridden in a derived class, gets the output block size.
The output block size.
Represents base class for Diffie Hellman key exchange algorithm
Represents base class for different key exchange algorithm implementations
Starts key exchange algorithm
The session.
Key exchange init message.
Finishes key exchange algorithm.
Creates the server side cipher to use.
Server cipher.
Creates the client side cipher to use.
Client cipher.
Creates the server side hash algorithm to use.
Hash algorithm
Creates the client side hash algorithm to use.
Hash algorithm
Creates the compression algorithm to use to deflate data.
Compression method.
Creates the compression algorithm to use to inflate data.
Compression method.
Determines whether the specified host key can be trusted.
The host algorithm.
true if the specified host can be trusted; otherwise, false.
Validates the exchange hash.
true if exchange hash is valid; otherwise false.
Calculates key exchange hash value.
Key exchange hash.
Hashes the specified data bytes.
The hash data.
Hashed bytes
Sends SSH message to the server
The message.
Generates the session key.
The shared key.
The exchange hash.
The key.
The size.
Generates the session key.
The shared key.
The exchange hash.
The p.
The session id.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets or sets the session.
The session.
Gets or sets key exchange shared key.
The shared key.
Gets the exchange hash.
The exchange hash.
Occurs when host key received.
Specifies key exchange group number.
Specifies key exchange prime number.
Specifies client payload
Specifies server payload
Specifies client exchange number.
Specifies server exchange number.
Specifies random generated number.
Specifies host key data.
Specifies signature data.
Validates the exchange hash.
true if exchange hash is valid; otherwise false.
Starts key exchange algorithm
The session.
Key exchange init message.
Populates the client exchange value.
Handles the server DH reply message.
The host key.
The server exchange value.
The signature.
Calculates key exchange hash value.
Key exchange hash.
Starts key exchange algorithm
The session.
Key exchange init message.
Finishes key exchange algorithm.
Represents base class for Diffie Hellman key exchange algorithm
Specifies client payload
Specifies server payload
Specifies client exchange number.
Specifies server exchange number.
Specifies random generated number.
Specifies host key data.
Specifies signature data.
Starts key exchange algorithm
The session.
Key exchange init message.
Validates the exchange hash.
true if exchange hash is valid; otherwise false.
Populates the client exchange value.
Basic factory for creating new services.
Creates a new with the specified .
The to use for creating a new session.
An for the specified .
is null.
Creates a new in a given and with
the specified operation timeout and encoding.
The to create the in.
The operation timeout.
The encoding.
An .
Create a new .
A .
Creates a new in a given
and with the specified operation timeout.
The to create the in.
The operation timeout.
An .
Changes the current working directory to the specified path.
The new working directory.
Resolves a given path into an absolute path on the server.
The path to resolve.
The absolute path.
Performs SSH_FXP_FSTAT request.
The handle.
File attributes
Performs SSH_FXP_LSTAT request.
The path.
File attributes
Performs SSH_FXP_MKDIR request.
The path.
Performs SSH_FXP_OPEN request
The path.
The flags.
if set to true returns null instead of throwing an exception.
File handle.
Performs SSH_FXP_OPENDIR request
The path.
if set to true returns null instead of throwing an exception.
File handle.
Performs posix-rename@openssh.com extended request.
The old path.
The new path.
Performs SSH_FXP_READ request.
The handle.
The offset.
The length.
data array; null if EOF
Performs SSH_FXP_READDIR request
The handle.
Performs SSH_FXP_REMOVE request.
The path.
Performs SSH_FXP_RENAME request.
The old path.
The new path.
Performs SSH_FXP_RMDIR request.
The path.
Performs SSH_FXP_SETSTAT request.
The path.
The attributes.
Performs statvfs@openssh.com extended request.
The path.
if set to true [null on error].
Performs SSH_FXP_SYMLINK request.
The linkpath.
The targetpath.
Performs SSH_FXP_FSETSTAT request.
The handle.
The attributes.
Performs SSH_FXP_WRITE request.
The handle.
The offset.
The data to send.
The wait event handle if needed.
The callback to invoke when the write has completed.
Performs SSH_FXP_CLOSE request.
The handle.
Calculates the optimal size of the buffer to read data from the channel.
The buffer size configured on the client.
The optimal size of the buffer to read data from the channel.
Calculates the optimal size of the buffer to write data on the channel.
The buffer size configured on the client.
The file handle.
The optimal size of the buffer to write data on the channel.
Currently, we do not take the remote window size into account.
Gets the SFTP protocol version.
The SFTP protocol version.
Gets the remote working directory.
The remote working directory.
Represents instance of the SSH shell object
Contains operation for working with SSH Shell.
Executes the specified action in a separate thread.
The action to execute.
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
An I/O error occurs.
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between and ( + - 1) replaced by the bytes read from the current source.
The zero-based byte offset in at which to begin storing the data read from the current stream.
The maximum number of bytes to be read from the current stream.
The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
The sum of and is larger than the buffer length. is null. or is negative.An I/O error occurs.The stream does not support reading.Methods were called after the stream was closed.
This method is not supported.
A byte offset relative to the parameter.
A value of type indicating the reference point used to obtain the new position.
The new position within the current stream.
An I/O error occurs.The stream does not support seeking, such as if the stream is constructed from a pipe or console output.Methods were called after the stream was closed.
This method is not supported.
The desired length of the current stream in bytes.
An I/O error occurs.The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.Methods were called after the stream was closed.
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
An array of bytes. This method copies bytes from to the current stream.
The zero-based byte offset in at which to begin copying bytes to the current stream.
The number of bytes to be written to the current stream.
The sum of and is greater than the buffer length. is null. or is negative.An I/O error occurs.The stream does not support writing.Methods were called after the stream was closed.
Expects the specified expression and performs action when one is found.
The expected expressions and actions to perform.
Expects the specified expression and performs action when one is found.
Time to wait for input.
The expected expressions and actions to perform, if the specified time elapsed and expected condition have not met, that method will exit without executing any action.
Begins the expect.
The expect actions.
An that references the asynchronous operation.
Begins the expect.
The callback.
The expect actions.
An that references the asynchronous operation.
Begins the expect.
The callback.
The state.
The expect actions.
An that references the asynchronous operation.
Begins the expect.
The timeout.
The callback.
The state.
The expect actions.
An that references the asynchronous operation.
Ends the execute.
The async result.
Either the IAsyncResult object did not come from the corresponding async method on this type, or EndExecute was called multiple times with the same IAsyncResult.
Expects the expression specified by text.
The text to expect.
Text available in the shell that ends with expected text.
Expects the expression specified by text.
The text to expect.
Time to wait for input.
Text available in the shell that ends with expected text, if the specified time elapsed returns null.
Expects the expression specified by regular expression.
The regular expression to expect.
Text available in the shell that contains all the text that ends with expected expression.
Expects the expression specified by regular expression.
The regular expression to expect.
Time to wait for input.
Text available in the shell that contains all the text that ends with expected expression, if the specified time elapsed returns null.
Reads the line from the shell. If line is not available it will block the execution and will wait for new line.
The line read from the shell.
Reads a line from the shell. If line is not available it will block the execution and will wait for new line.
Time to wait for input.
The line read from the shell, or null when no input is received for the specified timeout.
Reads text available in the shell.
The text available in the shell.
Writes the specified text to the shell.
The text to be written to the shell.
If is null, nothing is written.
Writes the line to the shell.
The line to be written to the shell.
If is null, only the line terminator is written.
Releases the unmanaged resources used by the and optionally releases the managed resources.
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Occurs when data was received.
Occurs when an error occurred.
Gets a value that indicates whether data is available on the to be read.
true if data is available to be read; otherwise, false.
Gets a value indicating whether the current stream supports reading.
true if the stream supports reading; otherwise, false.
Gets a value indicating whether the current stream supports seeking.
true if the stream supports seeking; otherwise, false.
Gets a value indicating whether the current stream supports writing.
true if the stream supports writing; otherwise, false.
Gets the length in bytes of the stream.
A long value representing the length of the stream in bytes.A class derived from Stream does not support seeking.Methods were called after the stream was closed.
Gets or sets the position within the current stream.
The current position within the stream.
An I/O error occurs.The stream does not support seeking.Methods were called after the stream was closed.
Provides additional information for asynchronous command execution
Initializes a new instance of the class.
The async callback.
The state.
Represents "diffie-hellman-group1-sha1" algorithm implementation.
Calculates key exchange hash value.
Key exchange hash.
Starts key exchange algorithm
The session.
Key exchange init message.
Finishes key exchange algorithm.
Gets the group prime.
The group prime.
Implementation of the SSH File Transfer Protocol (SFTP) over SSH.
Implementation of the SSH File Transfer Protocol (SFTP) over SSH.
Synchronizes the directories.
The source path.
The destination path.
The search pattern.
List of uploaded files.
Begins the synchronize directories.
The source path.
The destination path.
The search pattern.
The async callback.
The state.
An that represents the asynchronous directory synchronization.
is null. is null or contains only whitespace.
Ends the synchronize directories.
The async result.
List of uploaded files.Either the IAsyncResult object did not come from the corresponding async method on this type, or EndExecute was called multiple times with the same IAsyncResult.
Holds the instance that is used to communicate to the
SFTP server.
Holds the operation timeout.
Holds the size of the buffer.
Initializes a new instance of the class.
The connection info.
is null.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication password.
is null. is invalid. -or- is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication password.
is null. is invalid. -or- is null contains whitespace characters.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication private key file(s) .
is null. is invalid. -or- is nunullll or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication private key file(s) .
is null. is invalid. -or- is null or contains whitespace characters.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
The factory to use for creating new services.
is null. is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Changes remote directory to path.
New directory path.
is null.Client is not connected.Permission to change directory denied by remote host. -or- A SSH command was denied by the server. was not found on the remote host.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Changes permissions of file(s) to specified mode.
File(s) path, may match multiple files.
The mode.
is null.Client is not connected.Permission to change permission on the path(s) was denied by the remote host. -or- A SSH command was denied by the server. was not found on the remote host.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Creates remote directory specified by path.
Directory path to create.
is null or contains whitespace characters.Client is not connected.Permission to create the directory was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Deletes remote directory specified by path.
Directory to be deleted path.
is null or contains whitespace characters.Client is not connected. was not found on the remote host.Permission to delete the directory was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Deletes remote file specified by path.
File to be deleted path.
is null or contains whitespace characters.Client is not connected. was not found on the remote host.Permission to delete the file was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Renames remote file from old path to new path.
Path to the old file location.
Path to the new file location.
is null. -or- or is null.Client is not connected.Permission to rename the file was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Renames remote file from old path to new path.
Path to the old file location.
Path to the new file location.
if set to true then perform a posix rename.
is null. -or- or is null.Client is not connected.Permission to rename the file was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Creates a symbolic link from old path to new path.
The old path.
The new path.
is null. -or- is null or contains whitespace characters.Client is not connected.Permission to create the symbolic link was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Retrieves list of files in remote directory.
The path.
The list callback.
List of directory entries
is null.Client is not connected.Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Begins an asynchronous operation of retrieving list of files in remote directory.
The path.
The method to be called when the asynchronous write operation is completed.
A user-provided object that distinguishes this particular asynchronous write request from other requests.
The list callback.
An that references the asynchronous operation.
The method was called after the client was disposed.
Ends an asynchronous operation of retrieving list of files in remote directory.
The pending asynchronous SFTP request.
List of files
The IAsyncResult object () did not come from the corresponding async method on this type. -or- EndExecute was called multiple times with the same IAsyncResult.
Gets reference to remote file or directory.
The path.
Reference to file object.Client is not connected. was not found on the remote host. is null.The method was called after the client was disposed.
Checks whether file or directory exists;
The path.
true if directory or file exists; otherwise false. is null or contains whitespace characters.Client is not connected.Permission to perform the operation was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Downloads remote file specified by the path into the stream.
File to download.
Stream to write the file into.
The download callback.
is null. is null or contains whitespace characters.Client is not connected.Permission to perform the operation was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Begins an asynchronous file downloading into the stream.
The path.
The output.
An that references the asynchronous operation.
is null. is null or contains whitespace characters.Client is not connected.Permission to perform the operation was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Begins an asynchronous file downloading into the stream.
The path.
The output.
The method to be called when the asynchronous write operation is completed.
An that references the asynchronous operation.
is null. is null or contains whitespace characters.Client is not connected.Permission to perform the operation was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Begins an asynchronous file downloading into the stream.
The path.
The output.
The method to be called when the asynchronous write operation is completed.
A user-provided object that distinguishes this particular asynchronous write request from other requests.
The download callback.
An that references the asynchronous operation.
is null. is null or contains whitespace characters.Client is not connected.Permission to perform the operation was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Ends an asynchronous file downloading into the stream.
The pending asynchronous SFTP request.
The IAsyncResult object () did not come from the corresponding async method on this type. -or- EndExecute was called multiple times with the same IAsyncResult.
Uploads stream into remote file.
Data input stream.
Remote file path.
The upload callback.
is null. is null or contains whitespace characters.Client is not connected.Permission to upload the file was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Uploads stream into remote file.
Data input stream.
Remote file path.
if set to true then existing file will be overwritten.
The upload callback.
is null. is null or contains whitespace characters.Client is not connected.Permission to upload the file was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Begins an asynchronous uploading the steam into remote file.
Data input stream.
Remote file path.
An that references the asynchronous operation.
is null. is null or contains whitespace characters.Client is not connected.Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Begins an asynchronous uploading the steam into remote file.
Data input stream.
Remote file path.
The method to be called when the asynchronous write operation is completed.
An that references the asynchronous operation.
is null. is null or contains whitespace characters.Client is not connected.Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Begins an asynchronous uploading the steam into remote file.
Data input stream.
Remote file path.
The method to be called when the asynchronous write operation is completed.
A user-provided object that distinguishes this particular asynchronous write request from other requests.
The upload callback.
An that references the asynchronous operation.
is null. is null or contains whitespace characters.Client is not connected.Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Begins an asynchronous uploading the steam into remote file.
Data input stream.
Remote file path.
if set to true then existing file will be overwritten.
The method to be called when the asynchronous write operation is completed.
A user-provided object that distinguishes this particular asynchronous write request from other requests.
The upload callback.
An that references the asynchronous operation.
is null. is null or contains whitespace characters.Client is not connected.Permission to list the contents of the directory was denied by the remote host. -or- A SSH command was denied by the server.A SSH error where is the message from the remote host.The method was called after the client was disposed.
Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Ends an asynchronous uploading the steam into remote file.
The pending asynchronous SFTP request.
Either the IAsyncResult object did not come from the corresponding async method on this type, or EndExecute was called multiple times with the same IAsyncResult.The IAsyncResult object () did not come from the corresponding async method on this type. -or- EndExecute was called multiple times with the same IAsyncResult.
Gets status using statvfs@openssh.com request.
The path.
Reference to object that contains file status information.Client is not connected. is null.The method was called after the client was disposed.
Appends lines to a file, and then closes the file.
The file to append the lines to. The file is created if it does not already exist.
The lines to append to the file.
isnull-or- is null.The method was called after the client was disposed.
Appends lines to a file by using a specified encoding, and then closes the file.
The file to append the lines to. The file is created if it does not already exist.
The lines to append to the file.
The character encoding to use.
is null. -or- is null. -or- is null.The method was called after the client was disposed.
Opens a file, appends the specified string to the file, and then closes the file.
If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file.
The file to append the specified string to.
The string to append to the file.
is null. -or- is null.The method was called after the client was disposed.
Opens a file, appends the specified string to the file, and then closes the file.
If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file.
The file to append the specified string to.
The string to append to the file.
The character encoding to use.
is null. -or- is null. -or- is null.The method was called after the client was disposed.
Creates a that appends UTF-8 encoded text to an existing file.
The path to the file to append to.
A StreamWriter that appends UTF-8 encoded text to an existing file. is null.The method was called after the client was disposed.
Creates a that appends UTF-8 encoded text to an existing file.
The path to the file to append to.
The character encoding to use.
A StreamWriter that appends UTF-8 encoded text to an existing file.
is null. -or- is null.The method was called after the client was disposed.
Creates or overwrites a file in the specified path.
The path and name of the file to create.
A that provides read/write access to the file specified in path is null.The method was called after the client was disposed.
Creates or overwrites the specified file.
The path and name of the file to create.
The number of bytes buffered for reads and writes to the file.
A that provides read/write access to the file specified in path is null.The method was called after the client was disposed.
Creates or opens a file for writing UTF-8 encoded text.
The file to be opened for writing.
A that writes to the specified file using UTF-8 encoding. is null.The method was called after the client was disposed.
Creates or opens a file for writing UTF-8 encoded text.
The file to be opened for writing.
The character encoding to use.
A that writes to the specified file using UTF-8 encoding. is null.The method was called after the client was disposed.
Deletes the specified file or directory.
The name of the file or directory to be deleted. Wildcard characters are not supported.
is null.Client is not connected. was not found on the remote host.The method was called after the client was disposed.
Returns the date and time the specified file or directory was last accessed.
The file or directory for which to obtain access date and time information.
A structure set to the date and time that the specified file or directory was last accessed. This value is expressed in local time. is null.Client is not connected.The method was called after the client was disposed.
Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last accessed.
The file or directory for which to obtain access date and time information.
A structure set to the date and time that the specified file or directory was last accessed. This value is expressed in UTC time. is null.Client is not connected.The method was called after the client was disposed.
Returns the date and time the specified file or directory was last written to.
The file or directory for which to obtain write date and time information.
A structure set to the date and time that the specified file or directory was last written to. This value is expressed in local time. is null.Client is not connected.The method was called after the client was disposed.
Returns the date and time, in coordinated universal time (UTC), that the specified file or directory was last written to.
The file or directory for which to obtain write date and time information.
A structure set to the date and time that the specified file or directory was last written to. This value is expressed in UTC time. is null.Client is not connected.The method was called after the client was disposed.
Opens a on the specified path with read/write access.
The file to open.
A value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.
An unshared that provides access to the specified file, with the specified mode and access. is null.The method was called after the client was disposed.
Opens a on the specified path, with the specified mode and access.
The file to open.
A value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.
A value that specifies the operations that can be performed on the file.
An unshared that provides access to the specified file, with the specified mode and access. is null.The method was called after the client was disposed.
Opens an existing file for reading.
The file to be opened for reading.
A read-only System.IO.FileStream on the specified path. is null.The method was called after the client was disposed.
Opens an existing UTF-8 encoded text file for reading.
The file to be opened for reading.
A on the specified path. is null.The method was called after the client was disposed.
Opens an existing file for writing.
The file to be opened for writing.
An unshared object on the specified path with access. is null.The method was called after the client was disposed.
Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
The file to open for reading.
A byte array containing the contents of the file. is null.The method was called after the client was disposed.
Opens a text file, reads all lines of the file, and then closes the file.
The file to open for reading.
A string array containing all lines of the file. is null.The method was called after the client was disposed.
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
The file to open for reading.
The encoding applied to the contents of the file.
A string array containing all lines of the file. is null.The method was called after the client was disposed.
Opens a text file, reads all lines of the file, and then closes the file.
The file to open for reading.
A string containing all lines of the file. is null.The method was called after the client was disposed.
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
The file to open for reading.
The encoding applied to the contents of the file.
A string containing all lines of the file. is null.The method was called after the client was disposed.
Reads the lines of a file.
The file to read.
The lines of the file. is null.The method was called after the client was disposed.
Read the lines of a file that has a specified encoding.
The file to read.
The encoding that is applied to the contents of the file.
The lines of the file. is null.The method was called after the client was disposed.
Sets the date and time the specified file was last accessed.
The file for which to set the access date and time information.
A containing the value to set for the last access date and time of path. This value is expressed in local time.
Sets the date and time, in coordinated universal time (UTC), that the specified file was last accessed.
The file for which to set the access date and time information.
A containing the value to set for the last access date and time of path. This value is expressed in UTC time.
Sets the date and time that the specified file was last written to.
The file for which to set the date and time information.
A System.DateTime containing the value to set for the last write date and time of path. This value is expressed in local time.
Sets the date and time, in coordinated universal time (UTC), that the specified file was last written to.
The file for which to set the date and time information.
A System.DateTime containing the value to set for the last write date and time of path. This value is expressed in UTC time.
Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.
The file to write to.
The bytes to write to the file.
is null.The method was called after the client was disposed.
Creates a new file, writes a collection of strings to the file, and then closes the file.
The file to write to.
The lines to write to the file.
is null.The method was called after the client was disposed.
Creates a new file, write the specified string array to the file, and then closes the file.
The file to write to.
The string array to write to the file.
is null.The method was called after the client was disposed.
Creates a new file by using the specified encoding, writes a collection of strings to the file, and then closes the file.
The file to write to.
The lines to write to the file.
The character encoding to use.
is null.The method was called after the client was disposed.
Creates a new file, writes the specified string array to the file by using the specified encoding, and then closes the file.
The file to write to.
The string array to write to the file.
An object that represents the character encoding applied to the string array.
is null.The method was called after the client was disposed.
Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is overwritten.
The file to write to.
The string to write to the file.
is null.The method was called after the client was disposed.
Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.
The file to write to.
The string to write to the file.
The encoding to apply to the string.
is null.The method was called after the client was disposed.
Gets the of the file on the path.
The path to the file.
The of the file on the path. is null. was not found on the remote host.The method was called after the client was disposed.
Sets the specified of the file on the specified path.
The path to the file.
The desired .
is null.The method was called after the client was disposed.
Internals the list directory.
The path.
The list callback.
path is null.Client not connected.
Internals the download file.
The path.
The output.
An that references the asynchronous request.
The download callback.
is null. is null or contains whitespace.Client not connected.
Internals the upload file.
The input.
The path.
The flags.
An that references the asynchronous request.
The upload callback.
is null. is null or contains whitespace.Client not connected.
Called when client is connected to the server.
Called when client is disconnecting from the server.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Executes the specified action in a separate thread.
The action to execute.
Gets or sets the operation timeout.
The timeout to wait until an operation completes. The default value is negative
one (-1) milliseconds, which indicates an infinite timeout period.
The method was called after the client was disposed.
Gets or sets the maximum size of the buffer in bytes.
The size of the buffer. The default buffer size is 32768 bytes (32 KB).
For write operations, this limits the size of the payload for
individual SSH_FXP_WRITE messages. The actual size is always
capped at the maximum packet size supported by the peer
(minus the size of protocol fields).
For read operations, this controls the size of the payload which
is requested from the peer in each SSH_FXP_READ message. The peer
will send the requested number of bytes in one or more SSH_FXP_DATA
messages. To optimize the size of the SSH packets sent by the peer,
the actual requested size will take into account the size of the
SSH_FXP_DATA protocol fields.
The size of the each indivual SSH_FXP_DATA message is limited to the
local maximum packet size of the channel, which is set to 64 KB
for SSH.NET. However, the peer can limit this even further.
The method was called after the client was disposed.
Gets remote working directory.
Client is not connected.The method was called after the client was disposed.
Gets sftp protocol version.
Client is not connected.The method was called after the client was disposed.
Provides functionality to perform keyboard interactive authentication.
Initializes a new instance of the class.
The username.
is whitespace or null.
Authenticates the specified session.
The session to authenticate.
Result of authentication process.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Executes the specified action in a separate thread.
The action to execute.
Gets authentication method name
Occurs when server prompts for more authentication information.
Provides connection information when keyboard interactive authentication method is used
Initializes a new instance of the class.
The host.
The username.
Initializes a new instance of the class.
The host.
The port.
The username.
Initializes a new instance of the class.
Connection host.
Connection port.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
Initializes a new instance of the class.
Connection host.
Connection port.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
Initializes a new instance of the class.
Connection host.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
Initializes a new instance of the class.
Connection host.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
Initializes a new instance of the class.
Connection host.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
Initializes a new instance of the class.
Connection host.
Connection port.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Occurs when server prompts for more authentication information.
Provides functionality for "none" authentication method
Initializes a new instance of the class.
The username.
is whitespace or null.
Authenticates the specified session.
The session.
Result of authentication process.
is null.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets connection name
Provides functionality to perform password authentication.
Initializes a new instance of the class.
The username.
The password.
is whitespace or null. is null.
Initializes a new instance of the class.
The username.
The password.
is whitespace or null. is null.
Authenticates the specified session.
The session to authenticate.
Result of authentication process.
is null.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Executes the specified action in a separate thread.
The action to execute.
Gets authentication method name
Occurs when user's password has expired and needs to be changed.
Specifies behavior for expected expression
Initializes a new instance of the class.
The expect regular expression.
The action to perform.
or is null.
Initializes a new instance of the class.
The expect expression.
The action to perform.
or is null.
Gets the expected regular expression.
Gets the action to perform when expected expression is found.
Provides functionality for dynamic port forwarding
Initializes a new instance of the class.
The port.
Initializes a new instance of the class.
The host.
The port.
Starts local port forwarding.
Stops local port forwarding, and waits for the specified timeout until all pending
requests are processed.
The maximum amount of time to wait for pending requests to finish processing.
Ensures the current instance is not disposed.
The current instance is disposed.
Holds a value indicating whether the current instance is disposed.
true if the current instance is disposed; otherwise, false.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Waits for pending requests to finish, and channels to close.
The maximum time to wait for the forwarded port to stop.
Executes the specified action in a separate thread.
The action to execute.
Gets the bound host.
Gets the bound port.
Gets or sets a value indicating whether port forwarding is started.
true if port forwarding is started; otherwise, false.
Provides functionality for local port forwarding
Provides functionality for local port forwarding
Provides functionality for local port forwarding
Interrupts the listener, and waits for the listener loop to finish.
When the forwarded port is stopped, then any further action is skipped.
Initializes a new instance of the class.
The bound port.
The host.
The port.
is greater than . is null. is greater than .
Initializes a new instance of the class.
The bound host.
The host.
The port.
is null. is null. is greater than .
Initializes a new instance of the class.
The bound host.
The bound port.
The host.
The port.
is null. is null. is greater than . is greater than .
Starts local port forwarding.
Stops local port forwarding, and waits for the specified timeout until all pending
requests are processed.
The maximum amount of time to wait for pending requests to finish processing.
Ensures the current instance is not disposed.
The current instance is disposed.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Executes the specified action in a separate thread.
The action to execute.
Gets the bound host.
Gets the bound port.
Gets the forwarded host.
Gets the forwarded port.
Gets or sets a value indicating whether port forwarding is started.
true if port forwarding is started; otherwise, false.
Provides connection information when password authentication method is used
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
is null. is invalid, or is null or contains whitespace characters.
Initializes a new instance of the class.
Connection host.
Connection port.
Connection username.
Connection password.
is null. is invalid, or is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
Initializes a new instance of the class.
Connection host.
Connection port.
Connection username.
Connection password.
is null. is invalid, or is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
Initializes a new instance of the class.
Connection host.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Connection password.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Occurs when user's password has expired and needs to be changed.
Provides functionality to perform private key authentication.
Initializes a new instance of the class.
The username.
The key files.
is whitespace or null.
Authenticates the specified session.
The session to authenticate.
Result of authentication process.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets authentication method name
Gets the key files used for authentication.
Provides connection information when private key authentication method is used
Initializes a new instance of the class.
Connection host.
Connection username.
Connection key files.
Initializes a new instance of the class.
Connection host.
Connection port.
Connection username.
Connection key files.
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The key files.
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The key files.
Initializes a new instance of the class.
Connection host.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The key files.
Initializes a new instance of the class.
Connection host.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The key files.
Initializes a new instance of the class.
Connection host.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
The key files.
Initializes a new instance of the class.
Connection host.
The port.
Connection username.
Type of the proxy.
The proxy host.
The proxy port.
The proxy username.
The proxy password.
The key files.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets the key files used for authentication.
Specifies the type of proxy client will use to connect to server.
No proxy server.A SOCKS4 proxy server.A SOCKS5 proxy server.A HTTP proxy server.
Provides SCP client functionality.
Provides SCP client functionality.
Initializes a new instance of the class.
The connection info.
is null.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication password.
is null. is invalid, or is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication password.
is null. is invalid, or is null or contains whitespace characters.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication private key file(s) .
is null. is invalid, -or- is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication private key file(s) .
is null. is invalid, -or- is null or contains whitespace characters.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
The factory to use for creating new services.
is null. is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Uploads the specified stream to the remote host.
Stream to upload.
Remote host file name.
Downloads the specified file from the remote host to the stream.
Remote host file name.
The stream where to download remote file.
is null or contains whitespace characters. is null.Method calls made by this method to , may under certain conditions result in exceptions thrown by the stream.
Checks the return code.
The output stream.
Uploads the specified file to the remote host.
The file system info.
The path.
is null. is null or empty.
Uploads the specified directory to the remote host.
The directory info.
The path.
fileSystemInfo is null or empty.
Downloads the specified file from the remote host to local file.
Remote host file name.
Local file information.
is null. is null or empty.
Downloads the specified directory from the remote host to local directory.
Remote host directory name.
Local directory information.
is null or empty. is null.
Gets or sets the operation timeout.
The timeout to wait until an operation completes. The default value is negative
one (-1) milliseconds, which indicates an infinite time-out period.
Gets or sets the size of the buffer.
The size of the buffer. The default buffer size is 16384 bytes.
Occurs when downloading file.
Occurs when uploading file.
Provides data for message events.
Message type
Initializes a new instance of the class.
The message.
is null.
Gets the message.
Represents SSH_MSG_USERAUTH_BANNER message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets banner message.
Gets banner language.
Represents SSH_MSG_USERAUTH_FAILURE message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets or sets the allowed authentications if available.
The allowed authentications.
Gets failure message.
Gets a value indicating whether authentication is partially successful.
true if partially successful; otherwise, false.
Represents SSH_MSG_USERAUTH_INFO_REQUEST message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets information request name.
Gets information request instruction.
Gets information request language.
Gets information request prompts.
Represents SSH_MSG_USERAUTH_INFO_RESPONSE message.
Initializes a new instance of the class.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets authentication responses.
Represents SSH_MSG_USERAUTH_PASSWD_CHANGEREQ message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets password change request message.
Gets message language.
Represents SSH_MSG_USERAUTH_PK_OK message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the public key algorithm.
The name of the public key algorithm.
Gets the public key data.
Represents SSH_MSG_USERAUTH_REQUEST message. Server as a base message for other user authentication requests.
Initializes a new instance of the class.
Name of the service.
Authentication username.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets authentication username.
Gets the name of the service.
The name of the service.
Gets the name of the authentication method.
The name of the method.
Represents "hostbased" SSH_MSG_USERAUTH_REQUEST message.
Initializes a new instance of the class.
Name of the service.
Authentication username.
The public key algorithm.
The public host key.
Name of the client host.
The client username.
Called when type specific data need to be saved.
Gets the name of the authentication method.
The name of the method.
Gets the public key algorithm for host key
Gets or sets the public host key and certificates for client host.
The public host key.
Gets or sets the name of the client host.
The name of the client host.
Gets or sets the client username on the client host
The client username.
Gets or sets the signature.
The signature.
Represents "keyboard-interactive" SSH_MSG_USERAUTH_REQUEST message.
Initializes a new instance of the class.
Name of the service.
Authentication username.
Called when type specific data need to be saved.
Gets the name of the authentication method.
The name of the method.
Gets message language.
Gets authentication sub methods.
Represents "none" SSH_MSG_USERAUTH_REQUEST message.
Initializes a new instance of the class.
Name of the service.
Authentication username.
Gets the name of the authentication method.
The name of the method.
Represents "password" SSH_MSG_USERAUTH_REQUEST message.
Initializes a new instance of the class.
Name of the service.
Authentication username.
Authentication password.
Initializes a new instance of the class.
Name of the service.
Authentication username.
Authentication password.
New authentication password.
Called when type specific data need to be saved.
Gets the name of the authentication method.
The name of the method.
Gets authentication password.
Gets new authentication password.
Represents "publickey" SSH_MSG_USERAUTH_REQUEST message.
Initializes a new instance of the class.
Name of the service.
Authentication username.
Name of private key algorithm.
Private key data.
Initializes a new instance of the class.
Name of the service.
Authentication username.
Name of private key algorithm.
Private key data.
Private key signature.
Called when type specific data need to be saved.
Gets the name of the authentication method.
The name of the method.
Gets the name of the public key algorithm.
The name of the public key algorithm.
Gets the public key data.
Gets or sets public key signature.
The signature.
Represents SSH_MSG_USERAUTH_SUCCESS message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Represents SSH_MSG_CHANNEL_CLOSE message.
Base class for all channel specific SSH messages.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Returns a that represents this instance.
A that represents this instance.
Gets or sets the local channel number.
The local channel number.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
Represents SSH_MSG_CHANNEL_DATA message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
Message data.
Loads the data.
Saves the data.
Gets or sets message data.
The data.
Represents SSH_MSG_CHANNEL_EOF message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
Represents SSH_MSG_CHANNEL_EXTENDED_DATA message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
The message data type code.
The message data.
Loads the data.
Saves the data.
Gets message data type code.
Gets message data.
Represents SSH_MSG_CHANNEL_FAILURE message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
Represents SSH_MSG_CHANNEL_OPEN_CONFIRMATION message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
Initial size of the window.
Maximum size of the packet.
The remote channel number.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the remote channel number.
Gets the initial size of the window.
The initial size of the window.
Gets the maximum size of the packet.
The maximum size of the packet.
Represents SSH_MSG_CHANNEL_OPEN_FAILURE message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
The description.
The reason code.
Initializes a new instance of the class.
The local channel number.
The description.
The reason code.
The language (RFC3066).
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets failure reason code.
Gets description for failure.
Gets message language.
List channel open failure reasons defined by the protocol.
SSH_OPEN_ADMINISTRATIVELY_PROHIBITED
SSH_OPEN_CONNECT_FAILED
SSH_OPEN_UNKNOWN_CHANNEL_TYPE
SSH_OPEN_RESOURCE_SHORTAGE
Base class for open channel messages
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the type of the channel to open.
The type of the channel to open.
Represents SSH_MSG_CHANNEL_OPEN message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The channel number.
Initial size of the window.
Maximum size of the packet.
The info.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the type of the channel.
The type of the channel.
Gets the initial size of the window.
The initial size of the window.
Gets the maximum size of the packet.
The maximum size of the packet.
Gets channel specific open information.
Used to open "direct-tcpip" channel type
Specifies channel open type
Initializes a new instance of the class.
Initializes a new instance of the class.
The host to connect.
The port to connect.
The originator address.
The originator port.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the type of the channel to open.
The type of the channel to open.
Gets the host to connect.
Gets the port to connect.
Gets the originator address.
Gets the originator port.
Used to open "forwarded-tcpip" channel type
Specifies channel open type
Initializes a new instance.
Initializes a new instance with the specified connector
address and port, and originator address and port.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the type of the channel to open.
The type of the channel to open.
Gets the connected address.
Gets the connected port.
Gets the originator address.
Gets the originator port.
Used to open "session" channel type
Specifies channel open type
Gets the type of the channel to open.
The type of the channel to open.
Used to open "x11" channel type
Specifies channel open type
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the type of the channel to open.
The type of the channel to open.
Gets the originator address.
Gets the originator port.
Represents "break" type channel request information
Represents type specific information for channel request.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets or sets a value indicating whether reply message is needed.
true if reply message is needed; otherwise, false.
Channel request name
Initializes a new instance of the class.
Initializes a new instance of the class.
Length of the break.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets break length in milliseconds.
Represents SSH_MSG_CHANNEL_REQUEST message.
Initializes a new instance of the class.
Initializes a new instance of the class.
Name of the local channel.
The info.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets channel request data.
Represents "eow@openssh.com" type channel request information
Channel request name
Initializes a new instance of the class.
Gets the name of the request.
The name of the request.
Represents "env" type channel request information
Channel request name
Initializes a new instance of the class.
Initializes a new instance of the class.
Name of the variable.
The variable value.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets or sets the name of the variable.
The name of the variable.
Gets or sets the variable value.
The variable value.
Represents "exec" type channel request information
Channel request name
Initializes a new instance of the class.
Initializes a new instance of the class.
The command.
The character encoding to use.
or is null.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets command to execute.
The command.
Gets the encoding.
The encoding.
Represents "exit-signal" type channel request information
Channel request name
Initializes a new instance of the class.
Initializes a new instance of the class.
Name of the signal.
if set to true then core is dumped.
The error message.
The language.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets the name of the signal.
The name of the signal.
Gets a value indicating whether core is dumped.
true if core is dumped; otherwise, false.
Gets the error message.
Gets message language.
Represents "exit-status" type channel request information
Channel request name.
Initializes a new instance of the class.
Initializes a new instance of the class.
The exit status number.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets the exit status number.
Represents "keepalive@openssh.com" type channel request information
Channel request name
Initializes a new instance of the class.
Gets the name of the request.
The name of the request.
Represents "pty-req" type channel request information
Channel request name
Initializes a new instance of the class.
Initializes a new instance of the class.
The environment variable.
The columns.
The rows.
The width.
The height.
The terminal mode values.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets or sets the environment variable (e.g., vt100).
The environment variable.
Gets or sets the terminal width in columns (e.g., 80).
The terminal width in columns.
Gets or sets the terminal width in rows (e.g., 24).
The terminal width in rows.
Gets or sets the terminal width in pixels (e.g., 640).
The terminal width in pixels.
Gets or sets the terminal height in pixels (e.g., 480).
The terminal height in pixels.
Gets or sets the terminal mode.
The terminal mode.
Represents "shell" type channel request information
Channel request name
Initializes a new instance of the class.
Gets the name of the request.
The name of the request.
Represents "signal" type channel request information
Channel request name.
Initializes a new instance of the class.
Initializes a new instance of the class.
Name of the signal.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets the name of the signal.
The name of the signal.
Represents "subsystem" type channel request information
Channel request name
Initializes a new instance of the class.
Initializes a new instance of the class.
The subsystem.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets the name of the subsystem.
The name of the subsystem.
Represents "window-change" type channel request information
Channe request name
Initializes a new instance of the class.
Initializes a new instance of the class.
The columns.
The rows.
The width.
The height.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets the columns.
Gets the rows.
Gets the width.
Gets the height.
Represents "x11-req" type channel request information
Channel request name
Initializes a new instance of the class.
Initializes a new instance of the class.
if set to true it is a single connection.
The protocol.
The cookie.
The screen number.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets or sets a value indicating whether it is a single connection.
true if it is a single connection; otherwise, false.
Gets or sets the authentication protocol.
The authentication protocol.
Gets or sets the authentication cookie.
The authentication cookie.
Gets or sets the screen number.
The screen number.
Represents "xon-xoff" type channel request information
Channel request type
Initializes a new instance of the class.
Initializes a new instance of the class.
if set to true [client can do].
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets or sets a value indicating whether client can do.
true if client can do; otherwise, false.
Represents SSH_MSG_CHANNEL_SUCCESS message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
Represents SSH_MSG_CHANNEL_SUCCESS message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The local channel number.
The bytes to add.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets number of bytes to add to the window.
Represents SSH_MSG_GLOBAL_REQUEST message.
Initializes a new instance of the class.
Initializes a new instance of the class.
Name of the request.
if set to true [want reply].
Initializes a new instance of the class.
Name of the request.
if set to true [want reply].
The address to bind.
The port to bind.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the request.
The name of the request.
Gets a value indicating whether message reply should be sent..
true if message reply should be sent; otherwise, false.
Gets the address to bind to.
Gets port number to bind to.
Specifies supported request names.
tcpip-forward
cancel-tcpip-forward
Represents SSH_MSG_REQUEST_FAILURE message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Represents SSH_MSG_REQUEST_SUCCESS message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The bound port.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the bound port.
Indicates that a class represents SSH message. This class cannot be inherited.
Initializes a new instance of the class.
The name.
The number.
Gets or sets message name as defined in RFC 4250.
The name.
Gets or sets message number as defined in RFC 4250.
The number.
Specifies list of supported services
ssh-userauth
ssh-connection
Represents SSH_MSG_DEBUG message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets a value indicating whether the message to be always displayed.
true if the message always to be displayed; otherwise, false.
Gets debug message.
Gets message language.
Represents SSH_MSG_DISCONNECT message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The reason code.
The message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets disconnect reason code.
Gets disconnect description.
Gets message language.
Provides list of disconnect reason as specified by the protocol.
Disconnect reason is not provided.
SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT
SSH_DISCONNECT_PROTOCOL_ERROR
SSH_DISCONNECT_KEY_EXCHANGE_FAILED
SSH_DISCONNECT_RESERVED
SSH_DISCONNECT_MAC_ERROR
SSH_DISCONNECT_COMPRESSION_ERROR
SSH_DISCONNECT_SERVICE_NOT_AVAILABLE
SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED
SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE
SSH_DISCONNECT_CONNECTION_LOST
SSH_DISCONNECT_BY_APPLICATION
SSH_DISCONNECT_TOO_MANY_CONNECTIONS
SSH_DISCONNECT_AUTH_CANCELLED_BY_USER
SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE
SSH_DISCONNECT_ILLEGAL_USER_NAME
Represents SSH_MSG_IGNORE message.
Initializes a new instance of the class.
Initializes a new instance of the class.
The data.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets ignore message data if any.
Represents SSH_MSG_KEX_DH_GEX_GROUP message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets or sets the safe prime.
The safe prime.
Gets or sets the generator for subgroup in GF(p).
The sub group.
Represents SSH_MSG_KEX_DH_GEX_INIT message.
Initializes a new instance of the class.
The client exchange value.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the E value.
Represents SSH_MSG_KEX_DH_GEX_REPLY message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets server public host key and certificates
The host key.
Gets the F value.
Gets the signature of H.
The signature.
Represents SSH_MSG_KEX_DH_GEX_REQUEST message.
Initializes a new instance of the class.
The minimum.
The preferred.
The maximum.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets or sets the minimal size in bits of an acceptable group.
The minimum.
Gets or sets the preferred size in bits of the group the server will send.
The preferred.
Gets or sets the maximal size in bits of an acceptable group.
The maximum.
Represents SSH_MSG_KEXDH_INIT message.
Initializes a new instance of the class.
The client exchange value.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the E value.
Represents SSH_MSG_KEXDH_REPLY message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets server public host key and certificates
The host key.
Gets the F value.
Gets the signature of H.
The signature.
Represents SSH_MSG_KEXINIT message.
Initializes a new instance of the class.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets session cookie.
Gets or sets supported key exchange algorithms.
Supported key exchange algorithms.
Gets or sets supported server host key algorithms.
Supported server host key algorithms.
Gets or sets supported encryption algorithms client to server.
Supported encryption algorithms client to server.
Gets or sets supported encryption algorithms server to client.
Supported encryption algorithms server to client.
Gets or sets supported hash algorithms client to server.
Supported hash algorithms client to server.
Gets or sets supported hash algorithms server to client.
Supported hash algorithms server to client.
Gets or sets supported compression algorithms client to server.
Supported compression algorithms client to server.
Gets or sets supported compression algorithms server to client.
Supported compression algorithms server to client.
Gets or sets supported languages client to server.
Supported languages client to server.
Gets or sets supported languages server to client.
The languages server to client.
Gets or sets a value indicating whether first key exchange packet follows.
true if first key exchange packet follows; otherwise, false.
Gets or sets the reserved value.
The reserved value.
Represents SSH_MSG_KEXINIT message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Represents SSH_MSG_SERVICE_ACCEPT message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the service.
The name of the service.
Represents SSH_MSG_SERVICE_REQUEST message.
Initializes a new instance of the class.
Name of the service.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets the name of the service.
The name of the service.
Represents SSH_MSG_UNIMPLEMENTED message.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Contains operation for working with NetConf server.
Holds instance that used to communicate to the server
Initializes a new instance of the class.
The connection info.
is null.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication password.
is null. is invalid, or is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication password.
is null. is invalid, or is null or contains whitespace characters.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication private key file(s) .
is null. is invalid, -or- is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication private key file(s) .
is null. is invalid, -or- is null or contains whitespace characters.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
The factory to use for creating new services.
is null. is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Sends the receive RPC.
The RPC.
Reply message to RPC requestClient is not connected.
Sends the receive RPC.
The XML.
Reply message to RPC request
Sends the close RPC.
Reply message to closing RPC requestClient is not connected.
Called when client is connected to the server.
Called when client is disconnecting from the server.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Gets or sets the operation timeout.
The timeout to wait until an operation completes. The default value is negative
one (-1) milliseconds, which indicates an infinite time-out period.
Gets the NetConf server capabilities.
The NetConf server capabilities.
Gets the NetConf client capabilities.
The NetConf client capabilities.
Gets or sets a value indicating whether automatic message id handling is
enabled.
true if automatic message id handling is enabled; otherwise, false.
The default value is true.
Base class for SSH subsystem implementations
Initializes a new instance of the SubsystemSession class.
The session.
Name of the subsystem.
The operation timeout.
The character encoding to use.
or or is null.
Connects the subsystem using a new SSH channel session.
The session is already connected.The method was called after the session was disposed.
Disconnects the subsystem channel.
Sends data to the subsystem.
The data to be sent.
Called when channel is open.
Called when data is received.
The data type code.
The data.
Raises the error.
The error.
Waits a specified time for a given to get signaled.
The handle to wait for.
The time to wait for to get signaled.
The connection was closed by the server.The channel was closed.The handle did not get signaled within the specified .
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Finalizes an instance of the class.
Specifies a timeout to wait for operation to complete
Occurs when an error occurred.
Occurs when the server has disconnected from the session.
Gets the channel associated with this session.
The channel associated with this session.
Gets a value indicating whether this session is open.
true if this session is open; otherwise, false.
Gets the character encoding to use.
Initializes a new instance of the class.
The session.
The operation timeout.
Gets NetConf server capabilities.
Gets NetConf client capabilities.
Represents private key information.
Supports RSA and DSA private key in both OpenSSH and ssh.com format.
The following encryption algorithms are supported:
DES-EDE3-CBCDES-EDE3-CFBDES-CBCAES-128-CBCAES-192-CBCAES-256-CBC
Initializes a new instance of the class.
The private key.
Initializes a new instance of the class.
Name of the file.
is null or empty.This method calls internally, this method does not catch exceptions from .
Initializes a new instance of the class.
Name of the file.
The pass phrase.
is null or empty, or is null.This method calls internally, this method does not catch exceptions from .
Initializes a new instance of the class.
The private key.
The pass phrase.
or is null.
Opens the specified private key.
The private key.
The pass phrase.
Decrypts encrypted private key file data.
The cipher info.
Encrypted data.
Decryption pass phrase.
Decryption binary salt.
Decrypted byte array.cipherInfo, , or is null.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets the host key.
Reads next mpint data type from internal buffer where length specified in bits.
mpint read.
Implements certificate support for host algorithm.
Base class for SSH host algorithms.
Initializes a new instance of the class.
The host key name.
Signs the specified data.
The data.
Signed data.
Verifies the signature.
The data.
The signature.
True is signature was successfully verifies; otherwise false.
Gets the host key name.
Gets the host key data.
Initializes a new instance of the class.
The host key name.
Signs the specified data.
The data.
Signed data.
Verifies the signature.
The data.
The signature.
True if signature was successfully verified; otherwise false.
Gets the host key data.
Base class for asymmetric cipher implementations.
Base class for cipher implementation.
Encrypts the specified input.
The input.
Encrypted data.
Decrypts the specified input.
The input.
Decrypted data.
Populates buffer with big endian number representation.
The number to convert.
The buffer.
Populates buffer with big endian number representation.
The number to convert.
The buffer.
The buffer offset.
Converts big endian bytes into number.
The buffer.
Converted .
Converts big endian bytes into number.
The buffer.
The buffer offset.
Converted .
Converts big endian bytes into number.
The buffer.
Converted .
Converts big endian bytes into number.
The buffer.
The buffer offset.
Converted .
Populates buffer with big endian number representation.
The number to convert.
The buffer.
Populates buffer with big endian number representation.
The number to convert.
The buffer.
The buffer offset.
Populates buffer with little endian number representation.
The number to convert.
The buffer.
Populates buffer with little endian number representation.
The number to convert.
The buffer.
The buffer offset.
Converts little endian bytes into number.
The buffer.
Converted .
Converts little endian bytes into number.
The buffer.
The buffer offset.
Converted .
Converts little endian bytes into number.
The buffer.
Converted .
Converts little endian bytes into number.
The buffer.
The buffer offset.
Converted .
Populates buffer with little endian number representation.
The number to convert.
The buffer.
Populates buffer with little endian number representation.
The number to convert.
The buffer.
The buffer offset.
Gets the minimum data size.
The minimum data size.
Base class for block cipher implementations.
Base class for symmetric cipher implementations.
Initializes a new instance of the class.
The key.
is null.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Gets the key.
Gets the size of the block in bytes.
The size of the block in bytes.
Initializes a new instance of the class.
The key.
Size of the block.
Cipher mode.
Cipher padding.
is null.
Encrypts the specified data.
The data.
Encrypted data
Decrypts the specified data.
The data.
Decrypted data
Gets the minimum data size.
The minimum data size.
Gets the size of the block.
The size of the block.
Implements digital signature where where asymmetric cipher is used,
Base class for signature implementations
Verifies the signature.
The input.
The signature.
True if signature was successfully verified; otherwise false.
Creates the signature.
The input.
Signed input data.
Initializes a new instance of the class.
The object identifier.
The cipher.
Verifies the signature.
The input.
The signature.
True if signature was successfully verified; otherwise false.
Creates the signature.
The input.
Signed input data.
Hashes the specified input.
The input.
Hashed data.
Encodes hash using DER.
The hash data.
DER Encoded byte array
AES cipher implementation.
Initializes a new instance of the class.
The key.
The mode.
The padding.
is null.Keysize is not valid for this algorithm.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
or is null. or is too short.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
or is null. or is too short.
Implements ARCH4 cipher algorithm
Base class of stream cipher algorithms.
Initializes a new instance of the class.
The key.
is null.
Holds the state of the RC4 engine
Initializes a new instance of the class.
The key.
if set to true will disharged first 1536 bytes.
is null.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Encrypts the specified input.
The input.
Encrypted data.
Decrypts the specified input.
The input.
Decrypted data.
Gets the minimum data size.
The minimum data size.
Blowfish cipher implementation.
The s-boxes
The s-boxes
The s-boxes
The s-boxes
The p-array
Initializes a new instance of the class.
The key.
The mode.
The padding.
is null.Keysize is not valid for this algorithm.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
apply the encryption cycle to each value pair in the table.
The xl.
The xr.
The table.
Implements CAST cipher algorithm
The rotating round key
The masking round key
Initializes a new instance of the class.
The key.
The mode.
The padding.
is null.Keysize is not valid for this algorithm.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Sets the subkeys using the same nomenclatureas described in RFC2144.
The key.
The first of the three processing functions for the encryption and decryption.
The input to be processed.
The mask to be used from Km[n].
The rotation value to be used.
The second of the three processing functions for the encryption and decryption.
The input to be processed.
The mask to be used from Km[n].
The rotation value to be used.
The third of the three processing functions for the encryption and decryption.
The input to be processed.
The mask to be used from Km[n].
The rotation value to be used.
Does the 16 rounds to encrypt the block.
The LH-32bits of the plaintext block.
The RH-32bits of the plaintext block.
The result.
Base class for cipher mode implementations
Gets the cipher.
Gets the IV vector.
Holds block size of the cipher.
Initializes a new instance of the class.
The iv.
Initializes the specified cipher mode.
The cipher.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Base class for cipher padding implementations
Pads specified input to match block size.
Size of the block.
The input.
Padded data array.
Implements DES cipher algorithm.
Initializes a new instance of the class.
The key.
The mode.
The padding.
is null.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Generates the working key.
if set to true [encrypting].
The key.
Generated working key.
Validates the key.
Performs DES function.
The w key.
The input.
The in off.
The out bytes.
The out off.
Implements CBC cipher mode
Initializes a new instance of the class.
The iv.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Implements CFB cipher mode
Initializes a new instance of the class.
The iv.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Implements CTR cipher mode
Initializes a new instance of the class.
The iv.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Implements OFB cipher mode
Initializes a new instance of the class.
The iv.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Implements PKCS5 cipher padding
Transforms the specified input.
Size of the block.
The input.
Padded data array.
Implements PKCS7 cipher padding
Transforms the specified input.
Size of the block.
The input.
Padded data array.
Implements RSA cipher algorithm.
Initializes a new instance of the class.
The RSA key.
Encrypts the specified data.
The data.
Encrypted data.
Decrypts the specified data.
The data.
Decrypted data.
Only block type 01 or 02 are supported.Thrown when decrypted block type is not supported.
Implements Serpent cipher algorithm.
Initializes a new instance of the class.
The key.
The mode.
The padding.
is null.Keysize is not valid for this algorithm.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Expand a user-supplied key material into a session key.
@param key The user-key bytes (multiples of 4) to use.
@exception ArgumentException
S0 - { 3, 8,15, 1,10, 6, 5,11,14,13, 4, 2, 7, 0, 9,12 } - 15 terms.
A.
The b.
The c.
The d.
InvSO - {13, 3,11, 0,10, 6, 5,12, 1,14, 4, 7,15, 9, 8, 2 } - 15 terms.
A.
The b.
The c.
The d.
S1 - {15,12, 2, 7, 9, 0, 5,10, 1,11,14, 8, 6,13, 3, 4 } - 14 terms.
A.
The b.
The c.
The d.
InvS1 - { 5, 8, 2,14,15, 6,12, 3,11, 4, 7, 9, 1,13,10, 0 } - 14 steps.
A.
The b.
The c.
The d.
S2 - { 8, 6, 7, 9, 3,12,10,15,13, 1,14, 4, 0,11, 5, 2 } - 16 terms.
A.
The b.
The c.
The d.
InvS2 - {12, 9,15, 4,11,14, 1, 2, 0, 3, 6,13, 5, 8,10, 7 } - 16 steps.
A.
The b.
The c.
The d.
S3 - { 0,15,11, 8,12, 9, 6, 3,13, 1, 2, 4,10, 7, 5,14 } - 16 terms.
A.
The b.
The c.
The d.
InvS3 - { 0, 9,10, 7,11,14, 6,13, 3, 5,12, 2, 4, 8,15, 1 } - 15 terms
A.
The b.
The c.
The d.
S4 - { 1,15, 8, 3,12, 0,11, 6, 2, 5, 4,10, 9,14, 7,13 } - 15 terms.
A.
The b.
The c.
The d.
InvS4 - { 5, 0, 8, 3,10, 9, 7,14, 2,12,11, 6, 4,15,13, 1 } - 15 terms.
A.
The b.
The c.
The d.
S5 - {15, 5, 2,11, 4,10, 9,12, 0, 3,14, 8,13, 6, 7, 1 } - 16 terms.
A.
The b.
The c.
The d.
InvS5 - { 8,15, 2, 9, 4, 1,13,14,11, 6, 5, 3, 7,12,10, 0 } - 16 terms.
A.
The b.
The c.
The d.
S6 - { 7, 2,12, 5, 8, 4, 6,11,14, 9, 1,15,13, 3,10, 0 } - 15 terms.
A.
The b.
The c.
The d.
InvS6 - {15,10, 1,13, 5, 3, 6, 0, 4, 9,14, 7, 2,12, 8,11 } - 15 terms.
A.
The b.
The c.
The d.
S7 - { 1,13,15, 0,14, 8, 2,11, 7, 4,12,10, 9, 3, 5, 6 } - 16 terms.
A.
The b.
The c.
The d.
InvS7 - { 3, 0, 6,13, 9,14,15, 8, 5,12,11, 7,10, 1, 4, 2 } - 17 terms.
A.
The b.
The c.
The d.
Apply the linear transformation to the register set.
Apply the inverse of the linear transformation to the register set.
Implements 3DES cipher algorithm.
Initializes a new instance of the class.
The key.
The mode.
The padding.
is null.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
Validates the key.
Implements Twofish cipher algorithm
Define the fixed p0/p1 permutations used in keyed S-box lookup.
By changing the following constant definitions, the S-boxes will
automatically Get changed in the Twofish engine.
Initializes a new instance of the class.
The key.
The mode.
The padding.
is null.Keysize is not valid for this algorithm.
Encrypts the specified region of the input byte array and copies the encrypted data to the specified region of the output byte array.
The input data to encrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write encrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes encrypted.
Decrypts the specified region of the input byte array and copies the decrypted data to the specified region of the output byte array.
The input data to decrypt.
The offset into the input byte array from which to begin using data.
The number of bytes in the input byte array to use as data.
The output to which to write decrypted data.
The offset into the output byte array from which to begin writing data.
The number of bytes decrypted.
gSubKeys[] and gSBox[] are eventually used in the
encryption and decryption methods.
Use (12, 8) Reed-Solomon code over GF(256) to produce
a key S-box 32-bit entity from 2 key material 32-bit
entities.
@param k0 first 32-bit entity
@param k1 second 32-bit entity
@return Remainder polynomial Generated using RS code
Reed-Solomon code parameters: (12,8) reversible code:
G(x) = x^4 + (a+1/a)x^3 + ax^2 + (a+1/a)x + 1
where a = primitive root of field generator 0x14D
Implements DSA digital signature algorithm.
Initializes a new instance of the class.
The DSA key.
key
Verifies the signature.
The input.
The signature.
True if signature was successfully verified; otherwise false.
Invalid signature.
Creates the signature.
The input.
Signed input data.
Invalid DSA key.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Contains DSA private and public key
Base class for asymmetric cipher algorithms
Specifies array of big integers that represent private key
Initializes a new instance of the class.
DER encoded private key data.
Initializes a new instance of the class.
Signs the specified data with the key.
The data to sign.
Signed data.
Verifies the signature.
The data to verify.
The signature to verify against.
True is signature was successfully verifies; otherwise false.
Gets the key specific digital signature.
Gets or sets the public key.
The public.
Gets the length of the key.
The length of the key.
Initializes a new instance of the class.
Initializes a new instance of the class.
DER encoded private key data.
Initializes a new instance of the class.
The p.
The q.
The g.
The y.
The x.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets the P.
Gets the Q.
Gets the G.
Gets public key Y.
Gets private key X.
Gets the length of the key.
The length of the key.
Gets the digital signature.
Gets or sets the public.
The public.
MD5 algorithm implementation
Initializes a new instance of the class.
Routes data written to the object into the hash algorithm for computing the hash.
The input to compute the hash code for.
The offset into the byte array from which to begin using data.
The number of bytes in the byte array to use as data.
Finalizes the hash computation after the last data is processed by the cryptographic stream object.
The computed hash code.
Initializes an implementation of the class.
Gets the size, in bits, of the computed hash code.
The size, in bits, of the computed hash code.
Gets the input block size.
The input block size.
Gets the output block size.
The output block size.
Gets a value indicating whether the current transform can be reused.
Always true.
Gets a value indicating whether multiple blocks can be transformed.
true if multiple blocks can be transformed; otherwise, false.
SHA1 algorithm implementation
Initializes a new instance of the class.
Routes data written to the object into the hash algorithm for computing the hash.
The input to compute the hash code for.
The offset into the byte array from which to begin using data.
The number of bytes in the byte array to use as data.
Finalizes the hash computation after the last data is processed by the cryptographic stream object.
The computed hash code.
Initializes an implementation of the class.
Gets the size, in bits, of the computed hash code.
The size, in bits, of the computed hash code.
Gets the input block size.
The input block size.
Gets the output block size.
The output block size.
Gets a value indicating whether the current transform can be reused.
Always true.
Gets a value indicating whether multiple blocks can be transformed.
true if multiple blocks can be transformed; otherwise, false.
SHA256 algorithm implementation.
Initializes a new instance of the class.
Routes data written to the object into the hash algorithm for computing the hash.
The input to compute the hash code for.
The offset into the byte array from which to begin using data.
The number of bytes in the byte array to use as data.
Finalizes the hash computation after the last data is processed by the cryptographic stream object.
The computed hash code.
Initializes an implementation of the class.
The SHA-256 Constants (represent the first 32 bits of the fractional parts of the cube roots of the first sixty-four prime numbers)
Gets the size, in bits, of the computed hash code.
The size, in bits, of the computed hash code.
Gets the input block size.
The input block size.
Gets the output block size.
The output block size.
Gets a value indicating whether the current transform can be reused.
Always true.
Gets a value indicating whether multiple blocks can be transformed.
true if multiple blocks can be transformed; otherwise, false.
Provides HMAC algorithm implementation.
Class that implements .
Rfc 2104.
The key.
The size, in bits, of the computed hash code.
Rfc 2104.
The key.
Initializes an implementation of the class.
Hashes the core.
The RGB.
The ib.
The cb.
Finalizes the hash computation after the last data is processed by the cryptographic stream object.
The computed hash code.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Gets the size of the block.
The size of the block.
Gets or sets the key to use in the hash algorithm.
The key to use in the hash algorithm.
Implements RSA digital signature algorithm.
Initializes a new instance of the class.
The RSA key.
Hashes the specified input.
The input.
Hashed data.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Contains RSA private and public key
Initializes a new instance of the class.
Initializes a new instance of the class.
DER encoded private key data.
Initializes a new instance of the class.
The modulus.
The exponent.
The d.
The p.
The q.
The inverse Q.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Gets the modulus.
Gets the exponent.
Gets the D.
Gets the P.
Gets the Q.
Gets the DP.
Gets the DQ.
Gets the inverse Q.
Gets the length of the key.
The length of the key.
Gets the digital signature.
Gets or sets the public.
The public.
Represents "diffie-hellman-group14-sha1" algorithm implementation.
Gets algorithm name.
Gets the group prime.
The group prime.
Represents "diffie-hellman-group1-sha1" algorithm implementation.
Gets algorithm name.
Gets the group prime.
The group prime.
Represents "diffie-hellman-group-exchange-sha1" algorithm implementation.
Gets algorithm name.
Represents "diffie-hellman-group-exchange-sha256" algorithm implementation.
Hashes the specified data bytes.
Data to hash.
Hashed bytes
Gets algorithm name.
Implements key support for host algorithm.
Initializes a new instance of the class.
Host key name.
Host key.
Initializes a new instance of the class.
Host key name.
Host key.
Host key encoded data.
Signs the specified data.
The data.
Signed data.
Verifies the signature.
The data.
The signature.
True is signature was successfully verifies; otherwise false.
Gets the key.
Gets the public key data.
Called when type specific data need to be loaded.
Called when type specific data need to be saved.
Gets or sets the name of the algorithm.
The name of the algorithm.
Gets or sets the signature.
The signature.
Provides functionality to connect and interact with SSH server.
Provides functionality to connect and interact with SSH server.
Specifies maximum packet size defined by the protocol.
Holds the initial local window size for the channels.
2 MB.
Holds the maximum size of channel data packets that we receive.
64 KB.
Specifies an infinite waiting period.
The value of this field is -1 millisecond.
Specifies an infinite waiting period.
The value of this field is -1.
Controls how many authentication attempts can take place at the same time.
Some server may restrict number to prevent authentication attacks
Holds metada about session messages
Holds connection socket.
Holds locker object for the socket
Holds a that is signaled when the message listener loop has completed.
Specifies outbound packet number
Specifies incoming packet number
WaitHandle to signal that last service request was accepted
WaitHandle to signal that exception was thrown by another thread.
WaitHandle to signal that key exchange was completed.
WaitHandle to signal that bytes have been read from the socket.
WaitHandle to signal that key exchange is in progress.
Exception that need to be thrown by waiting thread
Specifies whether connection is authenticated
Specifies whether user issued Disconnect command or not
Initializes a new instance of the class.
The connection info.
is null.
Connects to the server.
Socket connection to the SSH server or proxy server could not be established, or an error occurred while resolving the hostname.SSH session could not be established.Authentication of SSH session failed.Failed to establish proxy connection.
Disconnects from the server.
This sends a SSH_MSG_DISCONNECT message to the server, waits for the
server to close the socket on its end and subsequently closes the client socket.
Waits for the specified handle or the exception handle for the receive thread
to signal within the connection timeout.
The wait handle.
A received package was invalid or failed the message integrity check.None of the handles are signaled in time and the session is not disconnecting.A socket error was signaled while receiving messages from the server.
When neither handles are signaled in time and the session is not closing, then the
session is disconnected.
Waits for the specified handle or the exception handle for the receive thread
to signal within the specified timeout.
The wait handle.
The time to wait for any of the handles to become signaled.
A received package was invalid or failed the message integrity check.None of the handles are signaled in time and the session is not disconnecting.A socket error was signaled while receiving messages from the server.
When neither handles are signaled in time and the session is not closing, then the
session is disconnected.
Waits for the specified handle or the exception handle for the receive thread
to signal within the connection timeout.
The wait handle.
A received package was invalid or failed the message integrity check.None of the handles are signaled in time and the session is not disconnecting.A socket error was signaled while receiving messages from the server.
When neither handles are signaled in time and the session is not closing, then the
session is disconnected.
Waits for the specified handle or the exception handle for the receive thread
to signal within the specified timeout.
The wait handle.
The time to wait for any of the handles to become signaled.
A received package was invalid or failed the message integrity check.None of the handles are signaled in time and the session is not disconnecting.A socket error was signaled while receiving messages from the server.
Sends a message to the server.
The message to send.
The client is not connected.The operation timed out.The size of the packet exceeds the maximum size defined by the protocol.
Sends a message to the server.
The message to send.
true if the message was sent to the server; otherwise, false.
The size of the packet exceeds the maximum size defined by the protocol.
This methods returns false when the attempt to send the message results in a
or a .
Receives the message from the server.
Incoming SSH message.
Handles the message.
The message.
Called when received.
message.
Called when received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when client is disconnecting from the server.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Called when message received.
message.
Reads the specified length of bytes from the server.
The length.
The bytes read from the server.
Registers SSH message with the session.
The name of the message to register with the session.
Unregister SSH message from the session.
The name of the message to unregister with the session.
Loads the message.
Message data.
New message
Disconnects and disposes the socket.
Listens for incoming message from the server and handles them. This method run as a task on separate thread.
Raises the event.
The exp.
Resets connection-specific information to ensure state of a previous connection
does not affect new connections.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Create a new SSH session channel.
A new SSH session channel.
Create a new channel for a locally forwarded TCP/IP port.
A new channel for a locally forwarded TCP/IP port.
Creates a "forwarded-tcpip" SSH channel.
A new "forwarded-tcpip" SSH channel.
Sends a message to the server.
The message to send.
The client is not connected.The operation timed out.The size of the packet exceeds the maximum size defined by the protocol.
Sends a message to the server.
The message to send.
true if the message was sent to the server; otherwise, false.
The size of the packet exceeds the maximum size defined by the protocol.
This methods returns false when the attempt to send the message results in a
or a .
Holds the lock object to ensure read access to the socket is synchronized.
Gets a value indicating whether the socket is connected.
true if the socket is connected; otherwise, false
As a first check we verify whether is
true. However, this only returns the state of the socket as of
the last I/O operation. Therefore we use the combination of Socket.Poll
with mode SelectRead and Socket.Available to verify if the socket is
still connected.
The MSDN doc mention the following on the return value of
with mode :
true if data is available for reading;true if the connection has been closed, reset, or terminated; otherwise, returns false.Conclusion: when the return value is true - but no data is available for reading - then
the socket is no longer connected.
When a is used from multiple threads, there's a race condition
between the invocation of and the moment
when the value of is obtained. As a workaround, we signal
when bytes are read from the .
Establishes a socket connection to the specified host and port.
The host name of the server to connect to.
The port to connect to.
The connection failed to establish within the configured .An error occurred trying to establish the connection.
Closes the socket and allows the socket to be reused after the current connection is closed.
An error occurred when trying to access the socket.
Performs a blocking read on the socket until a line is read.
The line read from the socket, or null when the remote server has shutdown and all data has been received.
A that represents the time to wait until a line is read.
The read has timed-out.An error occurred when trying to access the socket.
Performs a blocking read on the socket until bytes are received.
The number of bytes to read.
The buffer to read to.
The socket is closed.The read failed.
Writes the specified data to the server.
The data to write to the server.
The write has timed-out.The write failed.
Executes the specified action in a separate thread.
The action to execute.
Gets the session semaphore that controls session channels.
The session semaphore.
Gets the next channel number.
The next channel number.
Gets a value indicating whether the session is connected.
true if the session is connected; otherwise, false.
This methods returns true in all but the following cases:
The SSH_MSG_DISCONNECT message - which is used to disconnect from the server - has been sent.The client has not been authenticated successfully.The listener thread - which is used to receive messages from the server - has stopped.The socket used to communicate with the server is no longer connected.
Gets the session id.
The session id, or null if the client has not been authenticated.
Gets the client init message.
The client init message.
Gets or sets the server version string.
The server version.
Gets or sets the client version string.
The client version.
Gets or sets the connection info.
The connection info.
Occurs when an error occurred.
Occurs when session has been disconnected from the server.
Occurs when host key received.
Occurs when message is received from the server.
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received
Occurs when message received and is not handled by any of the event handlers
Gets or sets the connection info.
The connection info.
SSH_FXF_READ
SSH_FXF_WRITE
SSH_FXF_APPEND
SSH_FXF_CREAT
SSH_FXF_TRUNC
SSH_FXF_EXCL
Initializes a new instance of the class.
The protocol version.
The request id.
Specifies the path name of the new link to create.
Specifies the path of a target object to which the newly created link will refer. In the case of a symbolic link, this path may not exist.
if set to false the link should be a hard link, or a second directory entry referring to the same file or directory object.
The status action.
Encapsulates the results of an asynchronous download operation.
Initializes a new instance of the class.
The async callback.
The state.
Updates asynchronous operation status information.
Number of downloaded bytes.
Gets or sets a value indicating whether to cancel asynchronous download operation.
true if download operation to be canceled; otherwise, false.
Download operation will be canceled after finishing uploading current buffer.
Gets the number of downloaded bytes.
Represents SFTP file information
Initializes a new instance of the class.
The SFTP session.
Full path of the directory or file.
Attributes of the directory or file.
or is null.
Sets file permissions.
The mode.
Permanently deletes a file on remote machine.
Moves a specified file to a new location on remote machine, providing the option to specify a new file name.
The path to move the file to, which can specify a different file name.
is null.
Updates file status on the server.
Returns a that represents this instance.
A that represents this instance.
Gets the file attributes.
Gets the full path of the directory or file.
For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists.
Otherwise, the Name property gets the name of the directory.
Gets or sets the time the current file or directory was last accessed.
The time that the current file or directory was last accessed.
Gets or sets the time when the current file or directory was last written to.
The time the current file was last written.
Gets or sets the time, in coordinated universal time (UTC), the current file or directory was last accessed.
The time that the current file or directory was last accessed.
Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
The time the current file was last written.
Gets or sets the size, in bytes, of the current file.
The size of the current file in bytes.
Gets or sets file user id.
File user id.
Gets or sets file group id.
File group id.
Gets a value indicating whether file represents a socket.
true if file represents a socket; otherwise, false.
Gets a value indicating whether file represents a symbolic link.
true if file represents a symbolic link; otherwise, false.
Gets a value indicating whether file represents a regular file.
true if file represents a regular file; otherwise, false.
Gets a value indicating whether file represents a block device.
true if file represents a block device; otherwise, false.
Gets a value indicating whether file represents a directory.
true if file represents a directory; otherwise, false.
Gets a value indicating whether file represents a character device.
true if file represents a character device; otherwise, false.
Gets a value indicating whether file represents a named pipe.
true if file represents a named pipe; otherwise, false.
Gets or sets a value indicating whether the owner can read from this file.
true if owner can read from this file; otherwise, false.
Gets or sets a value indicating whether the owner can write into this file.
true if owner can write into this file; otherwise, false.
Gets or sets a value indicating whether the owner can execute this file.
true if owner can execute this file; otherwise, false.
Gets or sets a value indicating whether the group members can read from this file.
true if group members can read from this file; otherwise, false.
Gets or sets a value indicating whether the group members can write into this file.
true if group members can write into this file; otherwise, false.
Gets or sets a value indicating whether the group members can execute this file.
true if group members can execute this file; otherwise, false.
Gets or sets a value indicating whether the others can read from this file.
true if others can read from this file; otherwise, false.
Gets or sets a value indicating whether the others can write into this file.
true if others can write into this file; otherwise, false.
Gets or sets a value indicating whether the others can execute this file.
true if others can execute this file; otherwise, false.
Gets the extension part of the file.
File extensions.
Contains SFTP file attributes.
Sets the permissions.
The mode.
Gets or sets the time the current file or directory was last accessed.
The time that the current file or directory was last accessed.
Gets or sets the time when the current file or directory was last written to.
The time the current file was last written.
Gets or sets the size, in bytes, of the current file.
The size of the current file in bytes.
Gets or sets file user id.
File user id.
Gets or sets file group id.
File group id.
Gets a value indicating whether file represents a socket.
true if file represents a socket; otherwise, false.
Gets a value indicating whether file represents a symbolic link.
true if file represents a symbolic link; otherwise, false.
Gets a value indicating whether file represents a regular file.
true if file represents a regular file; otherwise, false.
Gets a value indicating whether file represents a block device.
true if file represents a block device; otherwise, false.
Gets a value indicating whether file represents a directory.
true if file represents a directory; otherwise, false.
Gets a value indicating whether file represents a character device.
true if file represents a character device; otherwise, false.
Gets a value indicating whether file represents a named pipe.
true if file represents a named pipe; otherwise, false.
Gets a value indicating whether the owner can read from this file.
true if owner can read from this file; otherwise, false.
Gets a value indicating whether the owner can write into this file.
true if owner can write into this file; otherwise, false.
Gets a value indicating whether the owner can execute this file.
true if owner can execute this file; otherwise, false.
Gets a value indicating whether the group members can read from this file.
true if group members can read from this file; otherwise, false.
Gets a value indicating whether the group members can write into this file.
true if group members can write into this file; otherwise, false.
Gets a value indicating whether the group members can execute this file.
true if group members can execute this file; otherwise, false.
Gets a value indicating whether the others can read from this file.
true if others can read from this file; otherwise, false.
Gets a value indicating whether the others can write into this file.
true if others can write into this file; otherwise, false.
Gets a value indicating whether the others can execute this file.
true if others can execute this file; otherwise, false.
Gets or sets the extensions.
The extensions.
Exposes a System.IO.Stream around a remote SFTP file, supporting both synchronous and asynchronous read and write operations.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
Clears all buffers for this stream and causes any buffered data to be written to the file.
An I/O error occurs. Stream is closed.
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between and ( + - 1) replaced by the bytes read from the current source.
The zero-based byte offset in at which to begin storing the data read from the current stream.
The maximum number of bytes to be read from the current stream.
The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
The sum of and is larger than the buffer length. is null. or is negative.An I/O error occurs. The stream does not support reading. Methods were called after the stream was closed.
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
The unsigned byte cast to an Int32, or -1 if at the end of the stream.
The stream does not support reading. Methods were called after the stream was closed. Read operation failed.
Sets the position within the current stream.
A byte offset relative to the parameter.
A value of type indicating the reference point used to obtain the new position.
The new position within the current stream.
An I/O error occurs. The stream does not support seeking, such as if the stream is constructed from a pipe or console output. Methods were called after the stream was closed.
When overridden in a derived class, sets the length of the current stream.
The desired length of the current stream in bytes.
An I/O error occurs.The stream does not support both writing and seeking, such as if the stream is constructed from a pipe or console output.Methods were called after the stream was closed. must be greater than zero.
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
An array of bytes. This method copies bytes from to the current stream.
The zero-based byte offset in at which to begin copying bytes to the current stream.
The number of bytes to be written to the current stream.
The sum of and is greater than the buffer length. is null. or is negative.An I/O error occurs.The stream does not support writing.Methods were called after the stream was closed.
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
The byte to write to the stream.
An I/O error occurs. The stream does not support writing, or the stream is already closed. Methods were called after the stream was closed.
Releases the unmanaged resources used by the and optionally releases the managed resources.
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Flushes the read data from the buffer.
Flush any buffered write data to the file.
Setups the read.
Setups the write.
Gets a value indicating whether the current stream supports reading.
true if the stream supports reading; otherwise, false.
Gets a value indicating whether the current stream supports seeking.
true if the stream supports seeking; otherwise, false.
Gets a value indicating whether the current stream supports writing.
true if the stream supports writing; otherwise, false.
Indicates whether timeout properties are usable for .
true in all cases.
Gets the length in bytes of the stream.
A long value representing the length of the stream in bytes.A class derived from Stream does not support seeking. Methods were called after the stream was closed. IO operation failed.
Gets or sets the position within the current stream.
The current position within the stream.An I/O error occurs. The stream does not support seeking. Methods were called after the stream was closed.
Gets a value indicating whether the FileStream was opened asynchronously or synchronously.
true if this instance is async; otherwise, false.
Gets the name of the FileStream that was passed to the constructor.
Gets the operating system file handle for the file that the current SftpFileStream object encapsulates.
Gets or sets the operation timeout.
The timeout.
Contains File system information exposed by statvfs@openssh.com request.
Initializes a new instance of the class.
The bsize.
The frsize.
The blocks.
The bfree.
The bavail.
The files.
The ffree.
The favail.
The sid.
The flag.
The namemax.
Gets the size of the block.
The size of the block.
Gets the total blocks.
The total blocks.
Gets the free blocks.
The free blocks.
Gets the available blocks.
The available blocks.
Gets the total nodes.
The total nodes.
Gets the free nodes.
The free nodes.
Gets the available nodes.
The available nodes.
Gets the sid.
The sid.
Gets a value indicating whether this instance is read only.
true if this instance is read only; otherwise, false.
Gets a value indicating whether [supports set uid].
true if [supports set uid]; otherwise, false.
Gets the max name lenght.
The max name lenght.
Encapsulates the results of an asynchronous directory list operation.
Initializes a new instance of the class.
The async callback.
The state.
Updates asynchronous operation status information.
The files read.
Gets the number of files read so far.
SSH_FXP_INIT
SSH_FXP_VERSION
SSH_FXP_OPEN
SSH_FXP_CLOSE
SSH_FXP_READ
SSH_FXP_WRITE
SSH_FXP_LSTAT
SSH_FXP_FSTAT
SSH_FXP_SETSTAT
SSH_FXP_FSETSTAT
SSH_FXP_OPENDIR
SSH_FXP_READDIR
SSH_FXP_REMOVE
SSH_FXP_MKDIR
SSH_FXP_RMDIR
SSH_FXP_REALPATH
SSH_FXP_STAT
SSH_FXP_RENAME
SSH_FXP_READLINK
SSH_FXP_SYMLINK
SSH_FXP_LINK
SSH_FXP_BLOCK
SSH_FXP_UNBLOCK
SSH_FXP_STATUS
SSH_FXP_HANDLE
SSH_FXP_DATA
SSH_FXP_NAME
SSH_FXP_ATTRS
SSH_FXP_EXTENDED
SSH_FXP_EXTENDED_REPLY
Changes the current working directory to the specified path.
The new working directory.
Resolves a given path into an absolute path on the server.
The path to resolve.
The absolute path.
Performs SSH_FXP_OPEN request
The path.
The flags.
if set to true returns null instead of throwing an exception.
File handle.
Performs SSH_FXP_CLOSE request.
The handle.
Performs SSH_FXP_READ request.
The handle.
The offset.
The length.
data array; null if EOF
Performs SSH_FXP_WRITE request.
The handle.
The offset.
The data to send.
The wait event handle if needed.
The callback to invoke when the write has completed.
Performs SSH_FXP_LSTAT request.
The path.
File attributes
Performs SSH_FXP_FSTAT request.
The handle.
File attributes
Performs SSH_FXP_SETSTAT request.
The path.
The attributes.
Performs SSH_FXP_FSETSTAT request.
The handle.
The attributes.
Performs SSH_FXP_OPENDIR request
The path.
if set to true returns null instead of throwing an exception.
File handle.
Performs SSH_FXP_READDIR request
The handle.
Performs SSH_FXP_REMOVE request.
The path.
Performs SSH_FXP_MKDIR request.
The path.
Performs SSH_FXP_RMDIR request.
The path.
Performs SSH_FXP_REALPATH request
The path.
if set to true returns null instead of throwing an exception.
Performs SSH_FXP_STAT request.
The path.
if set to true returns null instead of throwing an exception.
File attributes
Performs SSH_FXP_RENAME request.
The old path.
The new path.
Performs SSH_FXP_READLINK request.
The path.
if set to true returns null instead of throwing an exception.
Performs SSH_FXP_SYMLINK request.
The linkpath.
The targetpath.
Performs posix-rename@openssh.com extended request.
The old path.
The new path.
Performs statvfs@openssh.com extended request.
The path.
if set to true [null on error].
Performs fstatvfs@openssh.com extended request.
The file handle.
if set to true [null on error].
Performs hardlink@openssh.com extended request.
The old path.
The new path.
Calculates the optimal size of the buffer to read data from the channel.
The buffer size configured on the client.
The optimal size of the buffer to read data from the channel.
Calculates the optimal size of the buffer to write data on the channel.
The buffer size configured on the client.
The file handle.
The optimal size of the buffer to write data on the channel.
Currently, we do not take the remote window size into account.
Gets the remote working directory.
The remote working directory.
Gets the SFTP protocol version.
The SFTP protocol version.
Gets the next request id for sftp session.
Encapsulates the results of an asynchronous directory synchronization operation.
Initializes a new instance of the class.
The async callback.
The state.
Updates asynchronous operation status information.
The files read.
Gets the number of files read so far.
Encapsulates the results of an asynchronous upload operation.
Initializes a new instance of the class.
The async callback.
The state.
Updates asynchronous operation status information.
Number of uploaded bytes.
Gets or sets a value indicating whether to cancel asynchronous upload operation
true if upload operation to be canceled; otherwise, false.
Upload operation will be canceled after finishing uploading current buffer.
Gets the number of uploaded bytes.
SSH_FX_OK
SSH_FX_EOF
SSH_FX_NO_SUCH_FILE
SSH_FX_PERMISSION_DENIED
SSH_FX_FAILURE
SSH_FX_BAD_MESSAGE
SSH_FX_NO_CONNECTION
SSH_FX_CONNECTION_LOST
SSH_FX_OP_UNSUPPORTED
SSH_FX_INVALID_HANDLE
SSH_FX_NO_SUCH_PATH
SSH_FX_FILE_ALREADY_EXISTS
SSH_FX_WRITE_PROTECT
SSH_FX_NO_MEDIA
SSH_FX_NO_SPACE_ON_FILESYSTEM
SSH_FX_QUOTA_EXCEEDED
SSH_FX_UNKNOWN_PRINCIPAL
SSH_FX_LOCK_CONFLICT
SSH_FX_DIR_NOT_EMPTY
SSH_FX_NOT_A_DIRECTORY
SSH_FX_INVALID_FILENAME
SSH_FX_LINK_LOOP
SSH_FX_CANNOT_DELETE
SSH_FX_INVALID_PARAMETER
SSH_FX_FILE_IS_A_DIRECTORY
SSH_FX_BYTE_RANGE_LOCK_CONFLICT
SSH_FX_BYTE_RANGE_LOCK_REFUSED
SSH_FX_DELETE_PENDING
SSH_FX_FILE_CORRUPT
SSH_FX_OWNER_INVALID
SSH_FX_GROUP_INVALID
SSH_FX_NO_MATCHING_BYTE_RANGE_LOCK
Represents instance of the SSH shell object
Represents instance of the SSH shell object
Initializes a new instance of the class.
The session.
The input.
The output.
The extended output.
Name of the terminal.
The columns.
The rows.
The width.
The height.
The terminal modes.
Size of the buffer for output stream.
Starts this shell.
Shell is started.
Stops this shell.
Shell is not started.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
is null.
Gets a value indicating whether this shell is started.
true if started is started; otherwise, false.
Occurs when shell is starting.
Occurs when shell is started.
Occurs when shell is stopping.
Occurs when shell is stopped.
Occurs when an error occurred.
Provides client connection to SSH server.
Holds the list of forwarded ports
Holds a value indicating whether the current instance is disposed.
true if the current instance is disposed; otherwise, false.
Initializes a new instance of the class.
The connection info.
is null.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication password.
is null. is invalid, or is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication password.
is null. is invalid, or is null or contains whitespace characters.
Initializes a new instance of the class.
Connection host.
Connection port.
Authentication username.
Authentication private key file(s) .
is null. is invalid, -or- is null or contains whitespace characters. is not within and .
Initializes a new instance of the class.
Connection host.
Authentication username.
Authentication private key file(s) .
is null. is invalid, -or- is null or contains whitespace characters.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Initializes a new instance of the class.
The connection info.
Specified whether this instance owns the connection info.
The factory to use for creating new services.
is null. is null.
If is true, then the
connection info will be disposed when this instance is disposed.
Called when client is disconnecting from the server.
Adds the forwarded port.
The port.
Forwarded port is already added to a different client. is null.Client is not connected.
Stops and removes the forwarded port from the list.
Forwarded port.
is null.
Creates the command to be executed.
The command text.
object.Client is not connected.
Creates the command to be executed with specified encoding.
The command text.
The encoding to use for results.
object which uses specified encoding.This method will change current default encoding.Client is not connected. or is null.
Creates and executes the command.
The command text.
Returns an instance of with execution results.This method internally uses asynchronous calls.CommandText property is empty.Invalid Operation - An existing channel was used to execute this command.Asynchronous operation is already in progress.Client is not connected. is null.
Creates the shell.
The input.
The output.
The extended output.
Name of the terminal.
The columns.
The rows.
The width.
The height.
The terminal mode.
Size of the internal read buffer.
Returns a representation of a object.
Client is not connected.
Creates the shell.
The input.
The output.
The extended output.
Name of the terminal.
The columns.
The rows.
The width.
The height.
The terminal mode.
Returns a representation of a object.
Client is not connected.
Creates the shell.
The input.
The output.
The extended output.
Returns a representation of a object.
Client is not connected.
Creates the shell.
The encoding to use to send the input.
The input.
The output.
The extended output.
Name of the terminal.
The columns.
The rows.
The width.
The height.
The terminal mode.
Size of the internal read buffer.
Returns a representation of a object.
Client is not connected.
Creates the shell.
The encoding.
The input.
The output.
The extended output.
Name of the terminal.
The columns.
The rows.
The width.
The height.
The terminal modes.
Returns a representation of a object.
Client is not connected.
Creates the shell.
The encoding.
The input.
The output.
The extended output.
Returns a representation of a object.
Client is not connected.
Creates the shell stream.
Name of the terminal.
The columns.
The rows.
The width.
The height.
Size of the buffer.
Reference to Created ShellStream object.
Client is not connected.
Creates the shell stream.
Name of the terminal.
The columns.
The rows.
The width.
The height.
Size of the buffer.
The terminal mode values.
Reference to Created ShellStream object.
Client is not connected.
Stops forwarded ports.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Gets the list of forwarded ports.
Represents SSH command that can be executed.
Represents SSH command that can be executed.
Initializes a new instance of the class.
The session.
The command text.
The encoding to use for the results.
Either , is null.
Begins an asynchronous command execution.
An that represents the asynchronous command execution, which could still be pending.
Asynchronous operation is already in progress.Invalid operation.CommandText property is empty.Client is not connected.Operation has timed out.Asynchronous operation is already in progress.CommandText property is empty.
Begins an asynchronous command execution.
An optional asynchronous callback, to be called when the command execution is complete.
An that represents the asynchronous command execution, which could still be pending.
Asynchronous operation is already in progress.Invalid operation.CommandText property is empty.Client is not connected.Operation has timed out.Asynchronous operation is already in progress.CommandText property is empty.
Begins an asynchronous command execution.
An optional asynchronous callback, to be called when the command execution is complete.
A user-provided object that distinguishes this particular asynchronous read request from other requests.
An that represents the asynchronous command execution, which could still be pending.
Asynchronous operation is already in progress.Invalid operation.CommandText property is empty.Client is not connected.Operation has timed out.Asynchronous operation is already in progress.CommandText property is empty.
Begins an asynchronous command execution.
The command text.
An optional asynchronous callback, to be called when the command execution is complete.
A user-provided object that distinguishes this particular asynchronous read request from other requests.
An that represents the asynchronous command execution, which could still be pending.
Client is not connected.Operation has timed out.
Waits for the pending asynchronous command execution to complete.
The reference to the pending asynchronous request to finish.
Command execution result.Either the IAsyncResult object did not come from the corresponding async method on this type, or EndExecute was called multiple times with the same IAsyncResult.
Executes command specified by property.
Command execution resultClient is not connected.Operation has timed out.
Cancels command execution in asynchronous scenarios.
Executes the specified command text.
The command text.
Command execution resultClient is not connected.Operation has timed out.Command '{0}' has timed out.The actual command will be included in the exception message.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.
Releases unmanaged and - optionally - managed resources
true to release both managed and unmanaged resources; false to release only unmanaged ResourceMessages.
Releases unmanaged resources and performs other cleanup operations before the
is reclaimed by garbage collection.
Executes the specified action in a separate thread.
The action to execute.
Gets the command text.
Gets or sets the command timeout.
The command timeout.
Gets the command exit status.
Gets the output stream.
Gets the extended output stream.
Gets the command execution result.
Gets the command execution error.