我是否必须在我的服务器上安装 mosh-server 才能使用 Mosh?

AGa*_*yer 6 mosh

我已经mosh通过 brew安装在我的 MacOS 上。一切都很完美。

在我尝试连接到我的服务器后,我收到一条消息:

localhost:~ darkstaff$ mosh root@*.*.*.*
root@*.*.*.*'s password: 
bash: mosh-server: command not found
Connection to *.*.*.* closed.
/usr/local/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)
Run Code Online (Sandbox Code Playgroud)

我必须在我的服务器上安装 Mosh 吗?如果是这样,我该如何安装?

我正在使用Debian.

ilk*_*chu 3

是的。客户端必须与远程端的某些东西进行对话。它使用 SSH 进行初始连接,但 mosh 的想法是它使用自己的协议,因此它也需要自己的服务器程序。

我建议也使用screenortmux与 mosh 一起使用,因为如果客户端死机(例如您重新启动笔记本电脑),则无法重新连接到服务器上正在运行的 mosh 会话。

apt-get install mosh screen