---
title: SSH Sessions Duration-Based Limitation Settings
slug: kronpam-legacy-ui-reference-guide-3-5-0/ssh-sessions-duration-based-limitation-settings
description: Learn how to limit user session durations with this helpful document. Discover the step-by-step process of setting time limits, including navigating to Device Groups, making changes in the nsso.properties file, and establishing an SSH connection. Find out
docTags: 
createdAt: 2022-07-27T13:03:12.000Z
---

User sessions’ duration can be limited. This property is controlled by a file under the nssoapp service. To set a time limit:

1. Navigate t&#x6F;**&#x20;Device Groups**.
2. Right-click the desired **Device Group**, and select **Show Properties**.
3. Add the **sessionDurationLimitMinute** property with the value in minutes
4. Establish an SSH connection to the Kron PAM server.
5. Set the required parameters i&#x6E;**&#x20;/u01/nssoapp/conf/nsso.properties** using the commands:
   cd /u01/nssoapp/conf/                                                                                                                                vi nsso.properties
6. Add/edit the following parameter with the vi editor.
   **nsso.cli.session.duration.limit.warning.before.sec=30** (the warning message for session termination before the time limit is reached. If the value is 30, the warning message will be shown 60 seconds before session termination. The value can be changed as desired.)

::Image[]{src="https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/1Z6TaLXulMhcMcdVCc-jH_image.png" size="62" width="668" height="97" caption="Duration Based Restriction" position="center" showCaption="true"}

- Once the parameters are set, save, and exit the vi editor and restart the nssoapp with the command:
  systemctl restart nssoapp

