Table of Contents

Property SessionType

Namespace
SshSharp.Config
Assembly
SshSharp.dll

SessionType

The kind of session the caller will start, for Match sessiontype: shell (an interactive shell), exec (a command), subsystem (for example SFTP) or none (forwarding only, ssh -N). Null (the default) when unknown: a Match block with sessiontype or command then never applies, negated or not, since either answer could be wrong. ssh itself always knows, because the command line says.

public string? SessionType { get; init; }

Property Value

string

Exceptions

ArgumentException

Not one of the four.