Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.SSH.ServerSubSystem

Feature notes: SSH implementation notes

Classes, interfaces and records

classtSSHBaseServerSubSystem

constructor Create(const aController: iSSHSubSystemController; const aChannel : iSSHServerChannel); virtual; destructor Destroy; override;

classTstCustomSSHSubSystem

inherits from TstCustomProtoComponent

implements iSSHSubSystemController

Base class for a subsystem controller component. Set Identifier to the wire name ("sftp", "snip", ...) and Server to the TstSSHServer; SetServer registers it. AUTHORIZATION CONTRACT -- every implementer must satisfy one of these:
1. authenticate/authorize its own callers (Snif/Snip do this), or
2. refuse to serve when the SSH-level per-user grant cannot be enforced (TstSFTPServerSubSystem.RequireUserAuthorization does this). Neither is optional: TstCustomSSHServer.SupportsSubSystem only applies the per-user SubSystems grant "if Assigned(fUsers)", so on a server with no TstSSHServerUsers a bare controller match is sufficient and ANY authenticated user reaches the subsystem. See the long comment on SupportsSubSystem in StreamSec.SSH.Server for how that state is reached.

destructor Destroy; override; property Server: TstCustomSSHServer read fServer write SetServer;

Types (enumerations, sets, aliases)

typetSSHServerSubSystemClass

  tSSHServerSubSystemClass = class of tSSHBaseServerSubSystem;