You are not logged in.

#1 2014-08-16 14:30:18

CrazyTux
Member
Registered: 2013-08-23
Posts: 32

[SOLVED] Mosh startup

Forgive me for the newbie question, but how do I make mosh-server run on startup? For ssh, I can just

systemctl enable sshd

But for mosh, this didn't work with mosh, moshd, or mosh-server. Is there a way to auto-start it like sshd?

Last edited by CrazyTux (2014-08-16 14:45:30)

Offline

#2 2014-08-16 14:45:17

CrazyTux
Member
Registered: 2013-08-23
Posts: 32

Re: [SOLVED] Mosh startup

Oh, now I understand. You only need sshd running on the remote host, and mosh-server gets started automatically when you mosh to it. Solved.

Offline

#3 2014-08-16 14:45:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,551
Website

Re: [SOLVED] Mosh startup

I have no idea what mosh is, but I just unstalled it.  I see there is no moshd, so that is nonsensical from the start.  But there is a mosh-server which is likely what you want to run at startup, right?  Pacman -Ql quickly revealed that the package does not provide a systemd service file - that is why systemctl can't do anything with it.  So you'd need to make your own service file for it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2014-08-16 16:51:19

CrazyTux
Member
Registered: 2013-08-23
Posts: 32

Re: [SOLVED] Mosh startup

It seems that as mosh is a front-end for ssh, when you type "mosh remotehost" it ssh's to remotehost and starts mosh-server from there (or something like that). Just start sshd on the remote host (that has mosh installed) and try "mosh <remote host name>" on another computer.

Mosh basically improves ssh, so you can change network without disconnecting, and it predicts what the remote host will say, e.g. "a" when you type a.

Offline

Board footer

Powered by FluxBB