Questions tagged [mosh]

Mosh (mobile shell) is a remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.

Mosh (mobile shell)

Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.

Mosh is a replacement for SSH. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.

Mosh is free software, available for GNU/Linux, FreeBSD, Solaris, Mac OS X, and Android.

learn more at http://mosh.mit.edu/

25 questions
29
votes
5 answers

Portable Windows Mosh?

I was wondering if there's a way to use Mosh on windows without Cygwin? I need to be able to put it on my USB drive and copy it over to a windows computer and be able to Mosh into one of my servers. Otherwise, is there a way to use Cygwin and have…
mepmerp
  • 701
  • 1
  • 9
  • 16
15
votes
1 answer

Mosh log in automatically reattach tmux session

I'm using Mosh with tmux I want to run the command "tmux attach -t 0 -d" after mosh connects successfully. How do I automatically call a command to reattach tmux when I successfully log via mosh?
Lionel
  • 3,188
  • 5
  • 27
  • 40
12
votes
0 answers

In mosh how can I scrollback in the terminal and use mouse in emacs, less etc

I want to use mouse-wheel in emacs and also scroll-back in the terminal history. When I do mosh --no-init I can scroll-back in the terminal history but I cannot use mouse wheel in the emacs. Instead if I do only mosh without --no-init flag I can use…
alper
  • 2,919
  • 9
  • 53
  • 102
8
votes
3 answers

How can I run complicated commands on establishing a mosh connection?

With ssh I can do this: ssh REMOTE -t 'tmux a || tmux' With mosh the best I can do is this: mosh REMOTE -- tmux a But this won't work: mosh REMOTE -- tmux a || tmux Neither does this: (It doesn't matter whether it's single quote or double quote,…
Jun Zhou
  • 3,060
  • 1
  • 20
  • 31
7
votes
2 answers

How to connect to the server behind NAT using mosh

I'd like to connect to my server which is behind the NAT through mosh. I can't touch the router to set it as upnp support, but I've apply for a UDP port forward 9807->60000, and a ssh port forward of cause. So, is there anyway to specified the…
Alsan
  • 399
  • 1
  • 4
  • 15
3
votes
1 answer

MalformedJsonException only thrown during unit tests on Android Emulator

I have a test suite that open JSON files. The tests do not pass on emulator <= API 23 and work fine on newer API Level. There are two different kinds of exceptions: com.google.gson.JsonSyntaxException:…
fstephany
  • 2,254
  • 3
  • 25
  • 32
3
votes
1 answer

How to run "cd" command and keep ssh session in mosh

In ssh, I can use ssh root@myhost -t "cd mydir; bash -i" to do that, how can I run 2 commands in mosh with one line
nwaicaethi
  • 175
  • 3
  • 10
2
votes
1 answer

Can't connect to server via mosh

I started the server on Debian, installed all the necessary settings and connected the SSH key. I connect to the server: ssh -i yandex_key rhost@51.250.1.155 Terminal output: Linux rhost 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29)…
em0ji
  • 129
  • 1
  • 1
  • 7
2
votes
2 answers

Moshi with Retrofit send empty request

My app send my location every time. when I disable geolocation. i want send {"latitude":null,"longitude":null} but sent {} Model @Serializable data class PointBody( @Json(name = "latitude") val latitude: Double?, @Json(name = "longitude")…
Svetl9chok
  • 153
  • 5
2
votes
0 answers

How to prevent line wrapping in mosh?

When using ssh (say from OSX to a remote linux machine), lines are (correctly) soft-wrapped, so that resizing the terminal will redraw long lines so that they wrap exactly at the terminal width. However when using mosh instead of ssh, resizing the…
timotheecour
  • 3,104
  • 3
  • 26
  • 29
2
votes
2 answers

id_rsa file that shouldn't have a password is requiring a password

I created an ssh key without a password that I use to ssh and mosh into several webservers. It's been working fine for about 3 months now. Today when trying to access one of our servers, it prompted me for a password. I ran "ssh -vvv…
1
vote
1 answer

bcrypt not installing when tried to using npm i bcrypt

I am getting error Cannot find module 'bcrypt' in nodejs application I have tried to install it using npm install bcrypt but still getting the issue npm i bcrypt
1
vote
1 answer

Mosh using MobaXterm fails to connect with error, how to fix?

I'm having a problem connecting to remote hosts using MobaXterm as my Mosh client. I have no issues from Bash using my standard OpenSSh client to/from Slackware, Debian, and OpenBSD systems with the following command line: mosh --ssh=\"ssh -p…
tallship
  • 33
  • 6
1
vote
0 answers

How to run mosh in a python subprocess

I'm struggling to run mosh effectively within a python subprocess. I can spin up a mosh client and connect to a mosh server, but the process appears to hang. example ssh command: ssh -o SendEnv=ENVVAR -l username server_dns_name example mosh…
Brian Bruggeman
  • 5,008
  • 2
  • 36
  • 55
1
vote
1 answer

What's the terminal setting if I often switch mosh between foreground and background

I'm using mosh to access my remote Ubuntu machine. The client I'm using on Windows is MobaXterm which has a mosh plug-in. The one I use on Ubuntu is just the mosh client I get from apt-get. The problem is that I usually open a vim in bash to edit my…
fkengun
  • 13
  • 3
1
2