Page 1 of 1

Close session user

Posted: 2018/08/13 16:55:45
by edu4001
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..

Re: Close session user

Posted: 2018/08/17 11:57:06
by sferreira
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.