blink icon indicating copy to clipboard operation
blink copied to clipboard

Can successfully ssh to server, but mosh hangs

Open joshourisman opened this issue 3 years ago • 5 comments

Checklist

Configuration

Blink: v13.5.12.262. Mar 3 2021 iPadOS: 14.4.2 (18D70) iOS: 14.4.2 (18D70) Server OS: Ubuntu 20.04.2 LTS x86_64 Server mosh: 1.3.2 MacBook mosh: 1.3.2

Describe the bug

From both my iPhone and iPad, I cannot connect to my Ubuntu server with mosh in Blink. It just sits there forever, and nothing ever happens. I can, however, connect with ssh, and if I don't use a key when I try to connect with mosh I get a password prompt, and it hangs after I enter my password, confirming that the issue appears to be solely with mosh.

From my MacBook, I am able to connect with mosh without any issue, so the issue seems to be connected specifically to Blink.

I don't attempt to connect from my iPad frequently enough to say for sure, but I believe this issue first turned up after the most recent Blink update.

image

joshourisman avatar Apr 07 '21 20:04 joshourisman

Same issue. I can mosh from MacBook but using blink terminal on iOS, it hangs.

Host OS: Ubuntu 20.04.2 LTS (focal) Host Mosh Version: 1.3.2-2.1build3 (focal) Blink Version: v13.5.12.262

Both devices (MacBook and iOS) are attempting to ssh to the host along the same network path (same source and target subnets.)

brianczapiga avatar May 06 '21 01:05 brianczapiga

Same issue for me.

yowie avatar May 19 '21 05:05 yowie

same here, Debian Buster host with Mosh 1.3.2.

jkraemer avatar Jun 25 '21 08:06 jkraemer

Same, with mosh 1.3.2 on Manjaro but I’m on Blink 15.07.536

aimerib avatar Apr 27 '22 18:04 aimerib

A quick update. I was able to solve my specific issue by changing the mosh server config in Blink shell. If I understand this correctly, Blink will ssh into the server, start mosh-server there, then switch to a proper connection via udp with mosh-client.

In arch distributions systemd seems to be messing with services, and to keep sessions alive with mosh you need to execute it through systemd-run systemd-run --scope --user mosh-server new so if you place this bit of code in your blink mosh server config, it should work, assuming that’s the issue.

Found my answer here: https://github.com/mobile-shell/mosh/issues/730#issuecomment-224280671

aimerib avatar Apr 29 '22 19:04 aimerib

Closing here. Please open a Support issue on Discussions if this still comes up.

carloscabanero avatar Feb 13 '24 17:02 carloscabanero