Table of Contents

Method StartShellAsync

Namespace
SshSharp
Assembly
SshSharp.dll

StartShellAsync(SshSessionOptions?, CancellationToken)

Starts the user's login shell, usually with a terminal (Terminal) for interactive use.

public Task<SshSession> StartShellAsync(SshSessionOptions? options = null, CancellationToken cancellationToken = default)

Parameters

options SshSessionOptions
cancellationToken CancellationToken

Returns

Task<SshSession>

Exceptions

SshException

The server refused the terminal or the shell, or the connection failed.