Table of Contents

Class SshBase

Namespace
Tamir.SharpSsh
Assembly
SLSSH.dll

SSH base class.

public abstract class SshBase
Inheritance
SshBase
Derived
Extension Methods

Constructors

SshBase(string, string)

Initializes a new instance of the SshBase class using the host and username.

SshBase(string, string, string)

Initializes a new instance of the SshBase class using the host, username and password.

Properties

ChannelType

Gets the channel type.

Cipher

Gets the Cipher.

ClientVersion

Gets the client version.

Connected

Gets a value indicating whether a connection is established.

Host

Gets the host.

HostKey

Gets the host key.

Mac

Gets the Message Authentication Code (MAC).

Password

Gets or sets the user password.

Port

Gets the server port.

ServerVersion

Gets the server version.

Timeout

Gets or sets the timeout value (in ms).

Username

Gets the user name.

Version

Gets the assembly version.

Methods

AddIdentityFile(string)

Adds the specified identity file.

AddIdentityFile(string, string)

Adds the specified identity file and passphrase.

AddKexAlgorithms(string)

Adds the specified key exchange algorithm.

Close()

Closes the connection.

Connect()

Connects with the server on the default port (22).

Connect(int)

Connects with the server on the specified port.

ConnectSession(int)
GetMostRecentLog()

Gets the most recent log entry.

HandleOnLogging(object, LoggingEventArgs)

Events

OnLogging

Occurs when logging.