Questions tagged [mosh]

Mosh is a remote shell with an error-tolerant networking layer

Does its key-exchange over SSH, but emulates a local tty to enable underlining of characters have not done the client-server round trip yet. This is useful for high-RTT links, as it can be frustrating to type without echoing.

After the key-exchange, Mosh uses UDP and will maintain the session, even after connecting from a difference interface with a different IP that what was used for initiating the session.

18 questions
10
votes
5 answers

How to fix "Did not find mosh server startup message." when connecting from OS X to Linux router?

I did install Mosh on (1) a Mac OS X 10.9.5 machine, (2) a Debian 8 VM, and (3) as Entware-ng package on a router that runs an embedded Linux. Mosh connection from Mac (1) to (2) Debian is ok. Mosh connection from (1) Mac to (3) Linux embedded…
9
votes
1 answer

How can I mosh over multiple hops (for example, via tunnel or ProxyCommand)?

I have a system that I can only access via multiple ssh logins. I recently found out about using ProxyCommand or SSH tunnels to make the connection transparently. Is it possible to mosh instead, and if so, how?
lofidevops
  • 1,378
8
votes
2 answers

Run startup command in mosh

I'd like to run some startup command after login via mosh. With ssh, I'd do it as: ssh server -t 'some startup command' But, when I'm doing similar in mosh, I'm getting: $ mosh elisa2 --ssh="ssh -t 'cat blah'" Pseudo-terminal will not be…
sygi
  • 201
8
votes
1 answer

How can I do the job of .ssh keys with mosh?

I'm looking at migrating from ssh + screen to mosh, and I was wondering what (if any) ways of using mosh can satisfy a use case of securely shelling in to a remote server without typing out credentials like a password. (If it matters, I am trying to…
4
votes
0 answers

Mosh over Tor, instead of SSH over Tor?

Benefit that I'm looking for: Tor is slow. When SSH'ing over Tor doing even the basic things takes a lot of time and concentration Especially painful are: editing a file or a mistyped command line because when finding the spot to edit you can't use…
4
votes
1 answer

UDP port appears in netstat but not in lsof?

After using Mosh, I noticed that UDP ports held by mosh-server were still in use after all processes exited. Running netstat -ln, it shows that these ports are in use: Active Internet connections Proto Recv-Q Send-Q Local Address Foreign…
mxxk
  • 411
2
votes
2 answers

Mosh client unable to communicate to mosh server in a guest virtual machine

I'm having trouble trying to connect to mosh-server that is installed in a Arch Linux guest Virtual Machine (set up with the stack: KVM, libvirt and QEMU). I have a port forward configured with: virsh qemu-monitor-command --hmp arch_test…
2
votes
1 answer

Change mosh kill command shortcut

Is there any way to change mosh kill/suspend mapping ctrl+^ to something else? The reason it's the same key with vim quick buffer switch, it's annoying when you're trying to switch buffer but mosh ask whether to suspend, kill or repeat the key to…
Kuntau
  • 123
  • 4
2
votes
1 answer

Arrow keys don't work when using mosh remote shell

How can I get vim arrow keys to work inside a mosh shell? They used to work for me but after upgrading something (mosh probably) it's broken. Arrow keys don't work mosh 1.2.6 remote shell vim 7.4 ubuntu 14.04 Workaround :set…
1
vote
1 answer

How to quit mosh? How to type: Ctrl-^ (caret)

I've never managed to actually quit mosh successfully using the suggested command: [To quit: Ctrl-^ .] How do I enter this? Which physical keys do I need to press on the keyboard? I'm on MacOS but the problem is probably independent of OS. To make…
1
vote
1 answer

How to quit Mosh inside Tmux inside Mosh

The inner Mosh says: mosh: Last contact 428:08:30 ago. [To quit: Ctrl-^ .] However, using that key combination will quit the outer Mosh. I tried to prefix Ctrl-B in some…
Albert
  • 6,889
  • 11
  • 41
  • 53
1
vote
0 answers

How to create a shortcut for invoking Mosh from Google's Secure Shell extension?

This boils down to a question how to invoke a certain page of the extension from the command line. The SSH extension can be invoked by "C:\Program Files\Google\Chrome\Application\chrome_proxy.exe" --profile-directory=Default \ …
Petr
  • 3,273
1
vote
1 answer

How to connect to mosh-server with ipv6 address using juicessh?

I've been trying to connect to my computer running a mosh-server via juicessh by way of ipv6. Everything starts up ok, it connects, then asks for a password. Then after that juicessh (mosh-client) fails, it comes back with "bad ip address" and…
Petepf
  • 68
1
vote
0 answers

MobaXTerm - cutting off lines on output larger than window sice - how to change this?

I am using mobaXTerm as my SSH/Mosh Client ... so far a handy tool. However on MOSH connections, when outputs longer than the screen size arrive, only the most recent lines are shown. If the amount of lines is larger than the screen height, the…
haemse
  • 192
0
votes
1 answer

Is there a way to pause mosh from 3 second UDP updates?

Is there a way to pause mosh in a Cygwin installation? I think it's causing an excessive battery drain for my AndroidAP phone, since it's designed to be sending packets every 3 seconds, which is not very helpful when the mosh window is minimised and…
cnst
  • 2,615
1
2