vinay25 / snake-os

Automatically exported from code.google.com/p/snake-os
0 stars 0 forks source link

SSH/SFTP connection keeps dropping #232

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect to device using ssh (using putty) or sftp (using winSCP)
2. wait a few minutes (inactive)

What is the expected output? What do you see instead?
connection should remain open even with no activity
The connection keeps dropping. I have not tried to keep the activity going to 
ensure it dosent drop when there is activity but when i leave it and go for a 
coffee every time it srops the SFTP and SSH connection

What version of the product are you using? On what operating system?
Product: NS-K330
snakeos-V1.3.2-20111019 - Does have the problem
snakeos-V1.3.2-20111007 - Does NOT have the problem

Please provide any additional information below.
I rolled back due to this bug.. so no logs available but should be easy to 
reproduce

Original issue reported on code.google.com by ronaksha...@gmail.com on 8 Nov 2011 at 9:25

GoogleCodeExporter commented 9 years ago
this does seem to be an issue but until resolved a workaround for putty users

under connection dropdown
Seconds between keepalives = 10
Enable TCP keepalives

Original comment by g1p...@gmail.com on 9 Nov 2011 at 4:38

GoogleCodeExporter commented 9 years ago
I've the same issue too.
In addition in V1.3.2-20111019 I'm not able to perform a ssh tunnel, I'm trying 
to compile a dropbear new version but I'm a newbie

Original comment by l3ndx...@gmail.com on 10 Nov 2011 at 7:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same issue here. SSH keeps dropping after some minutes of inactivity.

Original comment by eder.and...@gmail.com on 7 Dec 2011 at 11:25

GoogleCodeExporter commented 9 years ago
The behavior in the current version should be the same as in 1.3.2-20101130. I 
accidently used the default config in 1.3.2-20111107. which broke a few other 
things.

To disable the timeout change line 21 in /etc/init/sshd to "dropbear -p ${PORT} 
-I 0" then run "/usr/share/snake/config save".

I'm not actually sure why the timeout is enabled. Maybe to avoid wasting memory 
on idle connections. I think I can make it configurable from the web interface.

Original comment by stefansc...@googlemail.com on 8 Dec 2011 at 7:39