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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
"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. |