• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 641
  • Last Modified:

Inactivity Timeout in Telnet Setting (RH5.0)

Redhat 5.0 linux question.  Telnet session inactivity timeout and disconnect is annoying me, how can I set the period for inactivity or disable the disconnect?  I can't seem to find ny info on this, but I suspect the answer's so simple I'll smack myself.
0
deusx
Asked:
deusx
1 Solution
 
deusxAuthor Commented:
Adjusted points to 100
0
 
t2ppCommented:
Try the "limit" parameter in /etc/ftpaccess.
0
 
deusxAuthor Commented:
Umm... Thanks, but I'm asking about Telnetd, not FTPd.  And the limit parameter (according to the man file) limits the number of connections to FTP, not even close to what I'm looking for.  

I need to stop Telnet sessions from disconnecting when I let the shell go idle for more than 5 min.

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
n0thingCommented:
which shell are you using ?? tcsh ? bash ??
0
 
deusxAuthor Commented:
Bash, I do believe...
0
 
n0thingCommented:
One way to find out for sure which shell you're using is to do a "grep myid /etc/passwd" and
see the last characters ../bin/tcsh .. /bin/bash ... or else. For tcsh you could add
set autologout 1000000 or some last number. Each digit presents a minute.
0
 
OttaCommented:
I agree with 'n0thing';
if using  'tcsh' or 'csh', then 'set autologout nnn'.

0
 
tosiCommented:
Is your TMOUT variable set ?

By the definition of ksh ( which bash does try hard to emulate ), the TMOUT defines your timeout in seconds.

for an indefinate timeout, set it to 0 by:

export TMOUT=0


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now