5 ms·
Some past threads: Blink Mobile Shell for iOS (Mosh Based) - https://news.ycombinator.com/item?id=18370348 https://news.ycombinator.com/item?id=18370348 - Nov
by dang 5y ago
Some past threads:
Blink Mobile Shell for iOS (Mosh Based) - https://news.ycombinator.com/item?id=18370348 https://news.ycombinator.com/item?id=18370348 - Nov 2018 (1 comment)
Mosh: the mobile shell - https://news.ycombinator.com/item?id=12429203 https://news.ycombinator.com/item?id=12429203 - Sept 2016 (49 comments)
Mosh: the mobile shell - https://news.ycombinator.com/item?id=11572146 https://news.ycombinator.com/item?id=11572146 - April 2016 (148 comments)
Mosh – a robust, responsive replacement for SSH - https://news.ycombinator.com/item?id=8928506 https://news.ycombinator.com/item?id=8928506 - Jan 2015 (45 comments)
Ask HN: Anyone using Mosh? Seems development has stalled since January - https://news.ycombinator.com/item?id=8556680 https://news.ycombinator.com/item?id=8556680 - Nov 2014 (1 comment)
Mosh: A replacement for SSH - https://news.ycombinator.com/item?id=8252093 https://news.ycombinator.com/item?id=8252093 - Sept 2014 (122 comments)
Mosh (mobile shell) - https://news.ycombinator.com/item?id=6321474 https://news.ycombinator.com/item?id=6321474 - Sept 2013 (6 comments)
Mosh: the mobile shell - https://news.ycombinator.com/item?id=5016745 https://news.ycombinator.com/item?id=5016745 - Jan 2013 (89 comments)
Mosh: the mobile shell - https://news.ycombinator.com/item?id=4588239 https://news.ycombinator.com/item?id=4588239 - Sept 2012 (1 comment)
Mosh: SSH for 2012 - https://news.ycombinator.com/item?id=3819382 https://news.ycombinator.com/item?id=3819382 - April 2012 (193 comments)
Mosh: the mobile shell - https://news.ycombinator.com/item?id=3814589 https://news.ycombinator.com/item?id=3814589 - April 2012 (2 comments)
- foxpurple 5y agoThe title “Mosh: SSH for 2012” is amusing because now in 2021, ssh is still king.
- blfr 5y agoSSH is great and full-featured, and mosh uses it for the initial connection, but try mosh if you haven't. I did years ago and never looked back. It reconnects immediately over any connection and works so well you can miss 15% packet loss. SSH feels so brittle next to it.
- input_sh 5y agoI disagree. SSH is fine for short connections (like git push or running some Ansible playbook), but it's far too fragile for longer uses. For example, if you're running something like dd with no output, you end up in a situation where you're not sure if dd is still running or did your connection just break. With mosh, I could start dd, close my laptop, move to a cafe, open up my laptop, and know for certain I'll re-establish the connection when I'm back online.
- gsich 5y agoIf you have long running operations you can use screen/tmux.
- Shish2k 5y agoYou can use screen/tmux, but they’re both more complicated and less good when it comes to this specific use-case. Personally I use both - mosh (or et) for the seamless automatic-reconnect, and tmux as a console window-manager.
- binkHN 5y ago> You can use screen/tmux, but they’re both more complicated... In what way are they more complicated? Granted screen is legacy, but tmux is just an executable on the server with sane defaults that Just Works OOTB.
- Shish2k 5y ago> In what way are they more complicated? When you change wifi networks you either have to remember to manually disconnect in advance, or wait for ssh to time-out the connection, then you have to create a new ssh connection, then you have to run an extra command to re-attach to the {screen/tmux} session you started earlier. It’s not insurmountably difficult work - but for the specific use-case of roaming across wifi networks, “doing a small disconnect and reconnect dance” with tmux is way more complicated and annoying than “open your laptop and all your connections are still working” with mosh.
- flyinghamster 5y agoIn general, I prefer SSH when using reliable, low-latency links, mainly because of the various forwarding capabilities (agent, X11, ports), and sometimes because I need my output to be sequential. But for any kind of situation where the link might be dodgy, mosh is king.
- eminence32 5y agoIndeed, a common paradigm is to use mosh to connect over the internet to some bastion host, and then use ssh for all subsequent connections over a highly reliable internal network.