The Sessions tab provides a way to manage current connections.
If enabled, session management allows you to view and disconnect users that are connected to the SSH server.
The sessions tab contains a list of currently connected clients. This list consists of the connected client's IP Address, logged in Username, and the amount of time they have been connected. This tab also contains the ability to disconnect selected users from the server.
This functionality can be enabled and disabled using the Enable Sessions Management checkbox.
Considerations When Running as a Service
When running the server as a service there are some special considerations to take into account about this feature. A special SSH administration service is hosted on port 8122 (default). This is exposed as a way for the user application (UI running in the system tray) to communicate with the SSH process that is actually accepting connections. The use of this service is transparent to you as the user. You do not need to take any special steps to use this, it is handled by the application.
The SSH administration service is only used for session management functionality and is only accessible from the local machine by default. Additionally it restricts the available commands to only those used for session management. The following Registry Keys settings define the SSH administration service configuration:
- AdminServicePort: The port on which the SSH admin service listens. The default is 8122.
- AdminServiceUsername: A username specifically for accessing the SSH admin service. The default is randomly generated during setup.
- AdminServicePassword: A corresponding password specifically for accessing the SSH admin service. The default is randomly generated during setup.
- AdminLocalOnly: Controls whether the SSH admin service is accessible remotely. The default is 1 (True).
Only the following commands are allowed when connected to the SSH administration service:
- Disconnect-PSSClient -ConnectionId <Id>
Note that when running the service in-process (not as a service) the SSH administration service is not used.