How can I use mosh via iClouds Back to my Mac, like I can do it with ssh?
ICloud – Using mosh with Back to the Mac
icloudssh
Related Question
- SSH Access Using .pub Key on macOS – How to Guide
- Unlocking and locking mac screen via ssh
- SSH Client not working
- MacOS – Establishing ssh session using Back To My Mac
- How to Set Up SSH to Access Local Machine Remotely
- MacOS ssh client that allows me to type fluid commands
- Fix SSH Connection Issues on macOS Big Sur with VPN
Best Answer
I got it working.
It requires a bit of messing with mosh, so try it first with the current version before hacking with your installation of mosh. Leave a new answer or a comment if this starts working with the latest versions of mosh please.
First, on both the client and the server, install the latest version of mosh:
brew install --HEAD mosh
.Then edit the
mosh
file ($EDITOR 'which mosh'
(use backticks instead of single ticks)) as specified here: https://github.com/keithw/mosh/issues/81#issuecomment-57074800 I made the change on both the client and the server.Then execute
mosh -6 your_server
if you followed Rnhmjoj's suggestion, ormosh -6 your_server.you_magic_number.members.btmm.icloud.com