0

Is there a way to pause mosh in a Cygwin installation?

I think it's causing an excessive battery drain for my AndroidAP phone, since it's designed to be sending packets every 3 seconds, which is not very helpful when the mosh window is minimised and not used for hours on end.

cnst
  • 2,435
  • 6
  • 28
  • 45
  • Did you try `Suspend Process` from the Windows Task Manager? – DavidPostill Jul 08 '15 at 17:51
  • @DavidPostill, don't have such option in Windows 7 Professional. – cnst Jul 08 '15 at 17:55
  • Ah. I haven't used the built-in task manager for many years. You can definately do it from [ProcessExplorer](https://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) - task manager replacement from sysinternals (part of MS) and [ProcessHacker](http://processhacker.sourceforge.net/) - which I am running and prefer. – DavidPostill Jul 08 '15 at 17:59

1 Answers1

0

You can check out and use the lowbandwidth branch of mosh, which will have 2 significant changes:

  1. Change the acknowledgement interval from 3 seconds to 60 seconds
  2. Tweak other settings so that 3 packets are sent per keystroke, instead of 4 packets.

Refer to this mailing list posting for more information.

SSH Timeout

Don't forget that the SSH server keep-alive settings, for example

ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=3
hanxue
  • 2,940
  • 4
  • 29
  • 53