Hacker News new | ask | show | jobs
by unprepare 3567 days ago
I have one constantly connected to an ethernet adapter because my MBP's wifi cuts out randomly throughout the day (which kills all my remote sessions of course).
2 comments

Use mosh for the remote sessions: https://mosh.org
This helps only with laggy connections with the occasional lost packet. Not with hard network drops (not to mention, there is more than just the terminal impacted by hard network drops).
No, mosh doesn't work like that. You can turn off the network connection in one of the nodes (both the server and the client) for hours and when they come back you still have your session like it was before the connection dropped.

I do this everyday on the client side (taking my laptop to work, opening the lid and having my session going on), and sometime on the server side as well.

Only if keepalive is disabled; in which case regular SSH will work the same way.
The WiFi cuts drop the RDP sessions I have and I cannot reconnect until I toggle the WiFi off and on.

Using the thunderbolt Ethernet helps.

Use tmux on your remote sessions. Game changer.

Edit: just read parent's reply talking about RDP