How to use mosh?

Is there a way I can use mosh. If I try to connect using a terminal app on my phone using mosh, it can’t find mosh. Namely, because it isn’t in /usr/bin it seems. Is there no other way besides rpm-ostree?

Hi @ndowens ,
mosh is also available via brew:

==> mosh: stable 1.4.0 (bottled), HEAD
Remote terminal application
https://mosh.org
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/5662596b92e4bb8188d08f499e1a63dab3b8cf0f/Formula/m/mosh.rb
License: GPL-3.0-or-later
...

Could you specify your use case in more detail?

I usually ssh/mosh into my PC when I am away from my phone. The phone app can do either ssh or mosh. I prefer mosh because it keeps the session going longer. I help maintain packages for Artix, which is why I do remote access and besides something to do :slight_smile:

That’s great, thank you for explanation!
So the mosh-server is supposed to be running on your Bazzite system. Provided you can connect to it using plain old ssh, installing mosh should in theory be enough to get you up and running.

Run brew install mosh from your Terminal app on Bazzite and then try connecting using mosh from your phone. If it would still complain about missing mosh then maybe try specifying full path to mosh-server binary like this:

mosh --server=/var/home/linuxbrew/.linuxbrew/bin/mosh-server BAZZITE-HOST-NAME

Unfortunately, with the terminal on my phone you can’t specify the binary path. I did brew method and that worked, in the end I resorted to just adding it to layer. Atleast it’s the only package I’ve added to the layer

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.