<PackageReference Include="SSH.NET" Version="2024.2.0" />

IChannelSession

Session SSH channel.
using Renci.SshNet.Common; using System; using System.Collections.Generic; namespace Renci.SshNet.Channels { internal interface IChannelSession : IChannel, IDisposable { void Open(); bool SendPseudoTerminalRequest(string environmentVariable, uint columns, uint rows, uint width, uint height, IDictionary<TerminalModes, uint> terminalModeValues); bool SendX11ForwardingRequest(bool isSingleConnection, string protocol, byte[] cookie, uint screenNumber); bool SendEnvironmentVariableRequest(string variableName, string variableValue); bool SendShellRequest(); bool SendExecRequest(string command); bool SendBreakRequest(uint breakLength); bool SendSubsystemRequest(string subsystem); bool SendWindowChangeRequest(uint columns, uint rows, uint width, uint height); bool SendLocalFlowRequest(bool clientCanDo); bool SendSignalRequest(string signalName); bool SendEndOfWriteRequest(); bool SendKeepAliveRequest(); } }