Inactivity Timeout in Telnet Setting (RH5.0)

Posted on 1998-09-11
Last Modified: 2013-12-15
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.
Question by:deusx

Author Comment

ID: 1630772
Adjusted points to 100

Expert Comment

ID: 1630773
Try the "limit" parameter in /etc/ftpaccess.

Author Comment

ID: 1630774
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.


Expert Comment

ID: 1630775
which shell are you using ?? tcsh ? bash ??
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.


Author Comment

ID: 1630776
Bash, I do believe...

Expert Comment

ID: 1630777
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.
LVL 12

Expert Comment

ID: 1630778
I agree with 'n0thing';
if using  'tcsh' or 'csh', then 'set autologout nnn'.


Accepted Solution

tosi earned 100 total points
ID: 1630779
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


Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to clone solaris 10 machine 33 114
change time in cron 4 67
Changing passwords in Linux Systems 3 41
AWS EC2 PHP code is not being executed code shows on the page instead 8 69
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now