Solved

session timeout.

Posted on 2001-09-06
11
482 Views
Last Modified: 2010-04-20
I have 7.1 RedHat. Normally when I run a script under a telnet session through a windows client, the connection of telnet will be timed out. Due to this even windows hangs sometime. Is there any option to increase the timeout option under 7.1?
0
Comment
Question by:vatsasri
  • 4
  • 2
  • 2
  • +3
11 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6465035
this is a kernel setting, AFAIK in /proc/sys/net/ipv4/tcp_keepalive_time
default is 2 houres (7200 seconds), usually
You may change it like:

echo 14200 > /proc/sys/net/ipv4/tcp_keepalive_time
0
 
LVL 40

Expert Comment

by:jlevie
ID: 6470515
I don't think the tcp_keepalive_time is what's causing the telnet timeouts. I've had open telnet session between my 7.1 boxes for days on occasion. I'd suspect that there's something between the windows client and the Lnix system that's got an idle timer, like a firewall. Also be aware that the default bash shell doesn't have an idle timer, but tcsh does.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6472430
.. tcp_keepalive_time could be one reason, autologout in tcsh another, and so on ...
I agree with jlevie, (UNIX's) TCP/IP has no timeout usualy, unless the OS specifies one (like Solaris).
0
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

by:vatsasri
ID: 6473317
I tried with tcp_keepalive_time and it did not work. Any other option, regarding setting up under Windows, I dont think there is any settings under windows, if there is any let me know.
0
 
LVL 16

Expert Comment

by:The--Captain
ID: 6474035
Also, session timeouts on masqueraded/NAT connections can do this as well (at least, that's what always kills _my_ ssh sessions ;-).

Just another thing to check.

-Jon

0
 
LVL 1

Expert Comment

by:soulmate022700
ID: 6494890
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6495766
BTW, M$ telnet is buggy.
Also give TeraTerm a try (supports ssh too).
  http://hp.vector.co.jp/authors/VA002416/teraterm.html
0
 

Expert Comment

by:CleanupPing
ID: 9078680
vatsasri:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 1

Accepted Solution

by:
soulmate022700 earned 50 total points
ID: 9104292
I still suggest to use putty, it has a keep alive option....
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 9106004
keep alive options won't help if the kernel drops the connection, that's what the kernel thing is for ;-)
0
 
LVL 16

Expert Comment

by:The--Captain
ID: 9449421
Daaaaaamn - that was open so long my comment became irrelevant (with the advent of iptables).  I stand amazed.

Cheers,
-Jon


0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OpenWrt 1 47
How to get IPA working with samba on RHEL 6? 1 98
reserve ip address for mac address in ubuntu dhcp server 2 90
(Open)LDAP V2.44  search proxy to AD (W2012R2) 37 170
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

792 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