5 ms·
I don't know if it's related to their improvements on battery life but when my Mac mini goes to sleep it breaks my ssh sessions in my iTerm2 terminal it's annoy
by doe88 13y ago
I don't know if it's related to their improvements on battery life but when my Mac mini goes to sleep it breaks my ssh sessions in my iTerm2 terminal it's annoying. I'm wondering if there is a way to maintain my connections alive?
- dewey 13y agoyou could use http://mosh.mit.edu/ http://mosh.mit.edu/
- rsynnott 13y agoIt may just be more aggressively sleeping, as opposed to just turning the screen off. You can change this in power management settings.
- mherkender 13y agoYou want OSX to keep network connections active while asleep? It seems to me that going to sleep means not actively doing anything. The most common solution to this problem is to use tmux or screen, or just disable sleep.
- apinstein 13y agoautossh is great, too if mosh doesn't fit your needs.
- FireBeyond 13y agoI wonder if iTerm2 could be patched to support the PowerNap functionality - and so send SSH keepalives whilst the system slept (assuming of course your underlying network substrate didn’t change).