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
optionsSshSessionOptionscancellationTokenCancellationToken
Returns
Exceptions
- SshException
The server refused the terminal or the shell, or the connection failed.