首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法通过mosh连接到服务器

无法通过mosh连接到服务器
EN

Stack Overflow用户
提问于 2021-11-08 13:41:49
回答 1查看 507关注 0票数 2

我在Debian上启动了服务器,安装了所有必要的设置并连接了SSH key。我连接到服务器:

代码语言:javascript
复制
ssh -i yandex_key rhost@51.250.1.155

终端输出:

代码语言:javascript
复制
Linux rhost 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Nov  8 12:56:48 2021 from 31.181.120.181

我在服务器上运行一个mosh-server

代码语言:javascript
复制
mosh-server (mosh 1.3.2) [build mosh 1.3.2]
Copyright 2012 Keith Winstein <mosh-devel@mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

[mosh-server detached, pid = 1739]

我回到本地机器并运行mosh-client

代码语言:javascript
复制
mosh-client (mosh 1.3.2) [build mosh 1.3.2]
Copyright 2012 Keith Winstein <mosh-devel@mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Usage: mosh-client [-# 'ARGS'] IP PORT
       mosh-client -c

我在终端运行命令:

代码语言:javascript
复制
MOSH_KEY=YfK...qoQ mosh-client 51.250.1.155 60001

返回:

代码语言:javascript
复制
mosh did not make a successful connection to 51.250.1.155:60001.
Please verify that UDP port 60001 is not firewalled and can reach the server.

(By default, mosh uses a UDP port between 60000 and 61000. The -p option
selects a specific UDP port number.)
[mosh is exiting.]

我尝试使用其他命令mosh [rhost@]51.250.1.155 mosh rhost@51.250.1.155连接,没有结果。我联系了服务器支持部门,但他们说问题在我这一边。有什么问题吗?我需要帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-04-01 09:29:11

确保您在防火墙中打开了UDP端口60000-61000。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69884458

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档