Networking Forums

Networking Forums > Computer Networking > Linux Networking > telnet session times out

Reply
Thread Tools Display Modes

telnet session times out

 
 
Avi
Guest
Posts: n/a

 
      08-24-2007, 02:04 AM
I'm connecting from a Win2000 machine into a Linux Fedora Core 6
machine via telnet.
After a while of inactivity the telnet times out.
Connecting via telnet is a requirement. I cannot use other connection
tools
My questions:
1. How could I tell if the connection is closed by the server (Fedora
Core 6) or by the client (Win2000)
2. Where and how could I set the time out to infinite

Thanks,
Avner

 
Reply With Quote
 
 
 
 
Sentine|
Guest
Posts: n/a

 
      08-24-2007, 04:41 AM
On Aug 23, 10:04 pm, Avi <avner-moshkov...@shaw.ca> wrote:
> I'm connecting from a Win2000 machine into a Linux Fedora Core 6
> machine via telnet.
> After a while of inactivity the telnet times out.
> Connecting via telnet is a requirement. I cannot use other connection
> tools
> My questions:
> 1. How could I tell if the connection is closed by the server (Fedora
> Core 6) or by the client (Win2000)
> 2. Where and how could I set the time out to infinite
>
> Thanks,
> Avner



Hi Avner,

Is the Linux box remote?
Yes: I've seen this caused by a clients LAN router (sometimes this can
fixed in the router itself) timing out a session if there is no
activity. In the past people would use a ping to keep their dial-up
active way back before broadband. Several programs can ping the
server at periodic intervals, however Putty (freeware) can be
configured to easily ping every N seconds and can also be used as a
Telnet (and SSH) client.

If that didn't solve your issue you might be able to get away with
increasing the keepalive time on Linux:
/proc/sys/net/ipv4/tcp_keepalive_time (defaults to 1800. 30 minutes)

I'm certain someone more knowledgeable on here could describe what
tcp_keepalive_intvl and tcp_keepalive_probes do or googling.

 
Reply With Quote
 
Joe Beanfish
Guest
Posts: n/a

 
      08-24-2007, 06:18 PM
Sentine| wrote:
> On Aug 23, 10:04 pm, Avi <avner-moshkov...@shaw.ca> wrote:
>> I'm connecting from a Win2000 machine into a Linux Fedora Core 6
>> machine via telnet.
>> After a while of inactivity the telnet times out.
>> Connecting via telnet is a requirement. I cannot use other connection
>> tools
>> My questions:
>> 1. How could I tell if the connection is closed by the server (Fedora
>> Core 6) or by the client (Win2000)
>> 2. Where and how could I set the time out to infinite
>>
>> Thanks,
>> Avner

>
>
> Hi Avner,
>
> Is the Linux box remote?
> Yes: I've seen this caused by a clients LAN router (sometimes this can
> fixed in the router itself) timing out a session if there is no
> activity. In the past people would use a ping to keep their dial-up
> active way back before broadband. Several programs can ping the
> server at periodic intervals, however Putty (freeware) can be
> configured to easily ping every N seconds and can also be used as a
> Telnet (and SSH) client.
>
> If that didn't solve your issue you might be able to get away with
> increasing the keepalive time on Linux:
> /proc/sys/net/ipv4/tcp_keepalive_time (defaults to 1800. 30 minutes)
>
> I'm certain someone more knowledgeable on here could describe what
> tcp_keepalive_intvl and tcp_keepalive_probes do or googling.
>


If the high tech methods fail you you could run something like this to
generate innocuous traffic so you don't look idle:

while :; do echo "\000\c"; sleep 30; done &
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting out of telnet session gracefully Spin Windows Networking 8 03-19-2008 09:27 AM
Kermit - How do I escape to a local kermit from a telnet session? Mark Hobley Linux Networking 9 09-24-2007 05:29 PM
TELNET Connection To Open Port Times Out PowerLifter1450@gmail.com Linux Networking 2 11-25-2006 08:27 PM
TELNET Connection To Open Port Times Out PowerLifter1450@gmail.com Linux Networking 0 11-24-2006 04:27 PM
Can "pppd" bind to a pty with "telnet" session over ethernet? Alex Yung Linux Networking 1 10-02-2003 01:33 PM



1 2 3 4 5 6 7 8 9 10 11