Operating System - Tru64 Unix
1752292 Members
4436 Online
108786 Solutions
New Discussion юеВ

Automatically logoff an Inactive seesion and banners

 
Rakesh Jha_1
Advisor

Automatically logoff an Inactive seesion and banners

We are running Tu64 V5.1B-4 with sshd enabled and have two issues -
1. we want to configure - pre-login banner and post-login banner. I can put post-login banner in /etc/motd file but where should I write a pre-login banner?

2. We want auto logoff a ssh seesion which is inactive for 10 min. Configuring something like "ClientAliveInterval" in sshd.config.

Thanks,
4 REPLIES 4
Khairy
Esteemed Contributor

Re: Automatically logoff an Inactive seesion and banners

hi rakesh,

1. You can use ur existing MOTD file /etc/motd.
To print this motd, change to following value to Yes.
PrintMotd Yes.

2. auto logoff, yes but there are 2 values which is clientAliveInterval and ClientAliveCountMax

if your clientAliveInterval = 2, then to make it autologoff after 10min, change ClientAliveCountMax to 300.

ClientAliveInterval 2
ClientAliveCountMax 300

Rgds

if this answer ur question, kindly pls assign some points. Thanks!

Geert Van Pamel
Regular Advisor

Re: Automatically logoff an Inactive seesion and banners

1. You can create a file /etc/issue. The contents will be displayed before the login username prompt.

cat /etc/issue

Unauthorized access is prohibited and will be logged


2. You can define a symbol TMOUT in the login script.

grep TMOUT /etc/profile
TMOUT=600

After 600 inactive seconds, the interactive shell script will be automatically logged out.
Rakesh Jha_1
Advisor

Re: Automatically logoff an Inactive seesion and banners

Thanks for the reply. However I have used following -
For banner I used - /etc/ssh2/ssh_banner_message

For auto logoff -

IdleTimeOut


This thread can be closed
Rakesh Jha_1
Advisor

Re: Automatically logoff an Inactive seesion and banners

Thread closed