Re: telnet session times out



Sentine| wrote:
On Aug 23, 10:04 pm, Avi <avner-moshkov...@xxxxxxx> 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 &
.



Relevant Pages

  • Re: Not possible connect to http://www.microsoft.com
    ... Try using telnet instead. ... Your ping test showed that your DNS seems to be working fine ... > I can access all Web sites, included https connections but I cannot ... >> Ensure no connection problems with ISP ...
    (microsoft.public.windows.inetexplorer.ie6.setup)
  • Re: fastforward problem
    ... PING 64.233.187.99: 56 data bytes ... When i try connect by telnet i have smth like this. ... Connection closed by foreign host. ... Upstream from you is some sort of transparent HTTP proxy/cache, ...
    (freebsd-net)
  • Re: cant telnet 25 from vmWare bonded to local nic of 2006?
    ... does not (ultimately telnet returns could not open connection to the ... Is there any reason why I shouldn't install the firewall client on an Exchange ... work with telnet). ... I tried moving the vmWare client to another box, ...
    (microsoft.public.isa)
  • Re: IIS 5.1 not working Help
    ... Just to jump back in, I just tested your assertions on telnet. ... I'm not sure what client you're using or indeed what HTTP server you> tested ... You're right in saying if it doesn't connect you can't>: issue a GET request, but with the XP client you don't get a lot of> useful ... > Connection to host lost. ...
    (microsoft.public.inetserver.iis)
  • Re: /etc/hosts - how does that file work?? - was weird nfs issues.
    ... anything besides ping - but it only ping hits the 172 address... ... client# grep server /etc/hosts ... telnet: connect to address 172.20.6.1: Connection refused ...
    (freebsd-questions)