Description
-
Fires when user starts requested service.
Syntax
-
Private Sub
object_ServiceStart(User,
ServiceIndex, ServiceType,
ServiceName)
The ServiceStart Event syntax has these parts:
| object |
A wodSSHD object. |
| User |
A SSHUser object. Reference
to user who started the service. |
|
ServiceIndex |
An Integer value.
Index of the service (starts from 0). |
|
ServiceType |
A SSHServiceTypes
enumeration, as described in settings. Type of the
service. |
|
ServiceName |
A String value. Name
of the service, as given by the client. |
Settings
-
The settings for ServiceType are:
 |
stNone |
0 |
No service. |
 |
stShell |
1 |
Command prompt. |
 |
stExecute |
2 |
Execute program. |
 |
stSubsystem |
3 |
External subsystem. |
 |
stPortForwarding |
4 |
Port forwarding. |
 |
stSCP |
5 |
Secure file copy. |
Remarks
-
This event is fired just after actual service is
started. Before this event you should have received
ServiceRequest
event for the same service, where you did have option to
Deny it.
This is good place to start some conversation with the
client in case ServiceType is
stNone. Also, if user requested
stShell, you can send some welcome
message from here which will be visible by the user before
any other content. You should not send anything if service
is stSubsystem or stPortForwarding, because you will interfere
with above layer protocols.
|