telnet and ssh: Connection closed by foreign host

This is a discussion on telnet and ssh: Connection closed by foreign host within the Linux Networking forums, part of the Linux Forums category; I started telnetd and sshd on my ubuntu server. When I use telnet or putty to connect to it, the ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-20-2007
sgxing@gmail.com
 
Posts: n/a
Default telnet and ssh: Connection closed by foreign host

I started telnetd and sshd on my ubuntu server. When I use telnet or
putty to connect to it, the connection broken after a while. It seems
there is a time out configured.
Does anyone have any idea on how to disable the time out and keep the
telnet or ssh session alive?

Reply With Quote
  #2 (permalink)  
Old 07-21-2007
Robert Harris
 
Posts: n/a
Default Re: telnet and ssh: Connection closed by foreign host

sgxing@gmail.com wrote:
> I started telnetd and sshd on my ubuntu server. When I use telnet or
> putty to connect to it, the connection broken after a while. It seems
> there is a time out configured.
> Does anyone have any idea on how to disable the time out and keep the
> telnet or ssh session alive?
>

There isn't a time out on sshd, at least by default. You probably have a
firewall somewhere in your network that times you out.

Robert
Reply With Quote
  #3 (permalink)  
Old 07-21-2007
Scott Hemphill
 
Posts: n/a
Default Re: telnet and ssh: Connection closed by foreign host

Robert Harris <robert.f.harris@blueyonder.co.uk> writes:

> sgxing@gmail.com wrote:
> > I started telnetd and sshd on my ubuntu server. When I use telnet or
> > putty to connect to it, the connection broken after a while. It seems
> > there is a time out configured.
> > Does anyone have any idea on how to disable the time out and keep the
> > telnet or ssh session alive?
> >

> There isn't a time out on sshd, at least by default. You probably have a
> firewall somewhere in your network that times you out.


So go set the ClientAliveInterval in /etc/ssh/sshd_config to something
smaller than the timeout.

Scott
--
Scott Hemphill hemphill@alumni.caltech.edu
"This isn't flying. This is falling, with style." -- Buzz Lightyear
Reply With Quote
  #4 (permalink)  
Old 07-21-2007
Frank Winans
 
Posts: n/a
Default Re: telnet and ssh: Connection closed by foreign host

"Scott Hemphill" wrote
> Robert Harris writes:
> > sgxing@gmail.com wrote:
> > > I started telnetd and sshd on my ubuntu server. When I use telnet or
> > > putty to connect to it, the connection broken after a while. It seems
> > > there is a time out configured.
> > > Does anyone have any idea on how to disable the time out and keep the
> > > telnet or ssh session alive?
> > >

> > There isn't a time out on sshd, at least by default. You probably have a
> > firewall somewhere in your network that times you out.

>
> So go set the ClientAliveInterval in /etc/ssh/sshd_config to something
> smaller than the timeout.
>
> Scott

And see if your putty.exe has a 'send keepalives' checkbox in the menues.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0