We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [mosh]

(Mobile Shell) - Mosh is a replacement for SSH which uses SSH to initiate the connection and UDP for later communication in order to support roaming and intermittent connectivity

Filter by
Sorted by
Tagged with
1
vote
1answer
29 views

Unable to make mosh work when ufw is enabled [closed]

I have a RPi running ArchLinux where I can login with mosh when ufw is disabled, but it doesn't work when it's enabled. This is my ufw setup: ❯ sudo ufw status numbered Status: active To ...
0
votes
0answers
18 views

Reconnect mosh which was disconnected by other client

Explanation: I start a mosh session on my Mac, use it several days with many reconnects, all is fine. Then I use my iPhone to connect to the same mosh, it also works as expected. But then, when ...
4
votes
1answer
2k views

Do I have to install mosh-server on my server to use Mosh?

I have installed mosh on my MacOS via brew. Everything went perfect. After I tried to connect to my server, I got a message: localhost:~ darkstaff$ mosh root@*.*.*.* root@*.*.*.*'s password: bash: ...
2
votes
2answers
209 views

Why mosh can stay login even when you changed your network situation?

I knew this app in another question on Unix SE. And it says: Change IP. Stay connected. Mosh automatically roams as you move between Internet connections. Use Wi-Fi on the train, Ethernet ...
5
votes
1answer
4k views

Mosh with port forwarding (like SSH)

When connecting to my development server via ssh, I can forward remote ports to local ports via: ssh my-user@some-domain.com -L 5432:localhost:5432 However I'd rather use mosh because my connection ...
4
votes
1answer
820 views

Don't nest tmux in a remote ssh shell

I've set up the .zshrc of my user account on all of the hosts to which I connect to automatically start tmux on login as long as it's not already running. if [ -z "$TMUX" ]; then tmux attach -d || ...
0
votes
2answers
173 views

NCurses over Mosh, altcharset

The simplest program that should draw a horizontal line: int main() { initscr(); for (int i=0;i<10;i++) addch(ACS_HLINE); getch(); endwin(); } works ok localy, but over MOSH connection result ...
5
votes
1answer
654 views

File transfer over mosh

I am using mosh for my regular terminal based activities. However I have also remote file sever access (via sftp) in nautilus. (I am using Ubuntu 16.10 with unity). (In nautilus, in the URL bar, I ...
1
vote
1answer
649 views

Detect whether the current terminal is through mosh or not

I am trying to figure out a way to detect whether the current terminal/connection (and under a tmux session as well) is through mosh or not. From this thread, I found which pseudo-terminal session I ...
2
votes
1answer
770 views

How do you keep systemd user services alive over mosh?

I have a few services (such as syncthing) set up as user-level systemd services on my Arch machine. They work great when I ssh in, but when I connect using mosh, they seem to start and then ...
2
votes
1answer
231 views

Tab completion on mosh (ssh) alias?

I've just started using mosh and I'm left thinking to myself "why didn't I start using this like two years ago?" I'm even more impressed by the fact that it reads my ~/.ssh/config and respects the ...
9
votes
2answers
6k views

mosh-server needs a UTF-8 native locale to run

I am trying to connect from my Gentoo to RHEL server. Both have mosh installed, however I get this error: petanb@localhost ~/Documents $ mosh root@server mosh-server needs a UTF-8 native locale to ...
1
vote
1answer
279 views

Can't connect from OSX to FreeBSD with mosh [closed]

I've installed mosh on my laptop using Macports and on my FreeBSD server using ports. Whenever I try to connect to my server I get the following error: Password for xxxxxx@xxx.xxx.xx.xx: zsh:1: ...
3
votes
1answer
383 views

Does mosh save bandwidth?

The mobile shell claims many benefits, especially with mobile connections. Many mobile plan prices scale with the amount of data transferred. So I wonder whether I can use Mosh to cut down in data ...
5
votes
1answer
1k views

Persistently mount remote filesystem? i.e. SSHFS/mosh?

I work with a very large remote filesystem, so I like to use mosh instead of ssh for low-connectivity persistent connections, or just when my computer sleeps. For editing files though, I mount the ...
5
votes
1answer
713 views

How do I know which Mosh Client I am?

When I try who, I frequently see output such as this: username pts/0 2015-10-09 04:48 (mosh [2680]) username pts/2 2015-10-12 00:04 (75.139.11.119 via mosh [12364]) username pts/6 ...
2
votes
1answer
672 views

ssh/mosh to a remote interactive shell and run specific function

I have the following alias on my local machine: alias gom='mosh -- user@host "/path/to/specific/zsh"' I use it to connect to a remote machine with an interactive shell. I would like to modify this ...
5
votes
2answers
3k views

sshfs over mosh tunnel

I am using sshfs over ssh tunnel. The reason for this is because I do not have direct access to machine from which I want to mount file system. This command establishes me tunnel: ssh -o ...
1
vote
0answers
237 views

Mosh and terminal multiplexing

Reading this Q&A on the site: Can I re-attach to a mosh session? made me wonder about the use cases for mosh. Say I start tmux on my local client, and then mosh to a remote host from within tmux....
4
votes
1answer
198 views

Mosh to a specific remote shell

With ssh, I can do something like the following: ssh user@host -t /path/to/some/shell How can I automatically launch a shell on the server with mosh? I have tried with mosh user@host -ssh /path/to/...
65
votes
4answers
32k views

Use Mosh without giving up local scrollback / history?

Is there a way to use mosh without giving up the local scrollback? Basically, in some circumstances, IP-roaming is indeed useful and needed, but the extra terminal emulation and key prediction seems ...
4
votes
1answer
163 views

How to get rid of `mosh` spamming `last -f /var/log/wtmp`?

Ever since I've started using mosh, I'm getting way too many entries in my /var/log/wtmp file of last(1) on a Linux box. cnst pts/8 172.56.2x.yz via Mon May 19 08:19 still logged in ...
11
votes
1answer
5k views

Mosh: Retain backscroll beyond terminal window height [duplicate]

I'm experimenting using Mosh instead of raw SSH for remote shell connections. So far I like it, but I've become used to being able to page-up or scroll through backscroll in my terminal window to see ...
14
votes
1answer
7k views

Can I re-attach to a detached mosh session?

When I connect using mosh I get the following error: Mosh: You have 2 detached Mosh sessions on this server, with PIDs: - mosh [3700] - mosh [31091] How can I resume one of these sessions?
6
votes
1answer
1k views

Mosh doesn't reconnect

I installed mosh on a desktop and server yesterday (compiled latest v1.2.3 from source) and it works fine. I left the session open yesterday and have come into the office today to find my mosh session ...