Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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