Networking Forums

Networking Forums > Computer Networking > Linux Networking > telnet and ssh: Connection closed by foreign host

Reply
Thread Tools Display Modes

telnet and ssh: Connection closed by foreign host

 
 
sgxing@gmail.com
Guest
Posts: n/a

 
      07-20-2007, 10:54 PM
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
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      07-21-2007, 10:54 AM
(E-Mail Removed) 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
 
Scott Hemphill
Guest
Posts: n/a

 
      07-21-2007, 12:43 PM
Robert Harris <(E-Mail Removed)> writes:

> (E-Mail Removed) 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 (E-Mail Removed)
"This isn't flying. This is falling, with style." -- Buzz Lightyear
 
Reply With Quote
 
Frank Winans
Guest
Posts: n/a

 
      07-21-2007, 06:50 PM
"Scott Hemphill" wrote
> Robert Harris writes:
> > (E-Mail Removed) 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
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
SSH ( Connection closed by -ip- ) WINUX Linux Networking 0 01-06-2007 07:13 PM
ASP.NET - The state server has closed an expired TCP/IP connection dm3281 Windows Networking 0 10-14-2006 06:45 PM
ssh connection closed after successful authentication Eggert Ehmke Linux Networking 0 02-28-2006 08:00 PM
Linux<->Windows connection using USB host-to-host cable =?iso-8859-2?Q?Rados=B3aw?= Grzanka Linux Networking 0 04-10-2004 03:23 PM
Closed Telnet Sessions Wally Haverschmidt Linux Networking 3 10-06-2003 12:06 PM



1 2 3 4 5 6 7 8 9 10 11