Close session user

General support questions
Post Reply
edu4001
Posts: 3
Joined: 2018/07/24 18:20:27

Close session user

Post by edu4001 » 2018/08/13 16:55:45

Hi,
I have a Centos 7 server with Xinetd + VNC sesions... All users connect to my server and several of them don't close this session..Only block screen and go home... Is the any ideas to control wich users don't work in one moment to close this session automatically.

Thanks..

sferreira
Posts: 69
Joined: 2016/04/26 16:06:06

Re: Close session user

Post by sferreira » 2018/08/17 11:57:06

Hey,
I think you can work with the ClientAliveInterval and ClientAliveCountMax config options on /etc/ssh/sshd_config file.

Check if this helps : https://www.thegeekdiary.com/centos-rhe ... to-logout/

For a more "raw" but efficient and straight forward method, you can always edit the .bashrc file on each user, where you can add the tmout option.

Check this: https://www.ostechnix.com/auto-logout-i ... ime-linux/

Best of luck.

Post Reply