Active Topics

 


Reply
Thread Tools
regulus's Avatar
Posts: 131 | Thanked: 42 times | Joined on Apr 2012 @ Europe
#1
How can I keep SSH connection from my computer (putty, WinSCP...) to my N900 (with ssh server turned on) alive even after the screen goes off? It usually disconnects me a few minutes after the N900 screen goes to standby; I guess this has something to do with power savings and dropping wifi when on standby?
I've had similar problems on Android and iOS (with Android, there's usually a setting in sshd app to prevent the disconnect, and on iOS there's the Insomnia tweak for these purposes).
__________________
My tricorder currently operates on CSSU-Stable 21.2011.38-1Smaemo6.1.
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2
I've never noticed that behaviour but you can experiment with power saving mode which is a per-connection property in Settings->Internet connections.
 

The Following User Says Thank You to pichlo For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#3
Noticed that too under Windoze on N9 (and also N900) and 'solved' it by opening a x-term and typing a simple 'ping hostmachine.mshome.net' or 'ping ip_address' and leave it open as long as I need that session.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 594 | Thanked: 1,094 times | Joined on Aug 2012 @ Rhine
#4
In WinSCP in Advanced Site Settings, you can send Keepalives.

Edit: works in Putty too (image 2).
Attached Images
  

Last edited by Leinad; 2013-10-11 at 15:07.
 

The Following 2 Users Say Thank You to Leinad For This Useful Post:
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#5
Hmm. All the above makes me think. Perhaps I've never left my SSH sessions idle for hours on end. I generally open, do what I do, close. Like everything else, for that matter. The general idea is, take as little as you need, as opposed to as much as you can.
 
regulus's Avatar
Posts: 131 | Thanked: 42 times | Joined on Apr 2012 @ Europe
#6
It wasn't "hours", it was "minutes" (and only seconds for being idle)... I doubt keep-alives would do the trick, as it happens a few minutes after the screen turns off on N900. So I presume it has something to do with power saving stuff -- I'll have a look into that.
__________________
My tricorder currently operates on CSSU-Stable 21.2011.38-1Smaemo6.1.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#7
Yep, but I cannot remember if it had something to do with blacking screen (but most probably).
So I doubt the KeepAlives from WinSCP works, as the "watchdog pings" needed to be sent from device to computer. If sent from computer to device, the same thing happens.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Posts: 89 | Thanked: 194 times | Joined on Feb 2010
#8
Shounds like you need Mosh.
 

The Following 2 Users Say Thank You to JohnHughes For This Useful Post:
regulus's Avatar
Posts: 131 | Thanked: 42 times | Joined on Apr 2012 @ Europe
#9
Strangely enough, I didn't get disconnected yesterday when working in Putty (also being idle for a while). I'll keep an eye if it only happens with WinSCP, though.

As for the power settings (haven't changed it yet) - I have it set to Maximum (the other two settings being Intermediate and Off). But I read that this only pertains to the speed of wifi connection (or maybe they were referring to the transceiver power, which is set to 100 mW on my phone, not 10 mW).
__________________
My tricorder currently operates on CSSU-Stable 21.2011.38-1Smaemo6.1.
 
pichlo's Avatar
Posts: 6,445 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#10
I have it at 100 mW too as 10 mW doesn't work in parts of my house.

FWIW, I ran SSH over PuTTY on Windows 8 last night for about two hours with no problems whatsoever. The phone was on a charger though. No idea if that makes a difference. I do it as a habit since the battery runs like a leaky bucket when an SSH session is active.
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:04.