Back to product page

Connecting event

Fires when user tries to connect to the server.


  • Basic
Private Sub object_Connecting(User, Action)  
The Connecting(object,User,Action) syntax has these parts:
objectAwodSSHD object.
UserAwodSSHUser object. Reference to user that is trying to connect.
ActionA SSHActions enumeration, as described in settings. Action to perform for the user - Allow means he is allowed to connect, Deny will disconnect user immediately.


The settings for Action are:

Constant Value Description
Deny0 Deny execution of the action.
Allow 1 Allow to execute action.

This event is fired before any data is transmitted by wodSSHD, upon new connection by some client. At this point client's IP address is known, and User.RemoteIP is set with that information. You should decide if you will allow the user to continue authentication with the server, or reject him from your server immediately.