• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 644
  • 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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