首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么我不能登录到一个IP地址,我可以成功地平平?(mssfix不作为解决方案)

为什么我不能登录到一个IP地址,我可以成功地平平?(mssfix不作为解决方案)
EN

Ask Ubuntu用户
提问于 2020-07-06 14:48:34
回答 1查看 234关注 0票数 0

我正在运行Ubuntu18.04,我正在尝试将SSH登录到我使用OpenVPN连接到的服务器上的IP地址。请注意,我已经能够通过我的Windows笔记本电脑上的PUTTY进入IP地址,但在我的Ubuntu机器上并非如此。在我的Ubuntu笔记本电脑上,一旦我连接到VPN,我就可以在没有问题的情况下平移IP地址,但是当我尝试运行ssh -v username@ipaddress时,我得到了输出:

代码语言:javascript
复制
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 10.1.50.11 [10.1.50.11] port 22.
debug1: Connection established.
debug1: identity file /home/ellie/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/ellie/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ellie/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ellie/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ellie/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ellie/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ellie/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ellie/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4
debug1: match: OpenSSH_8.2p1 Ubuntu-4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.1.50.11:22 as 'ewhite'
debug1: SSH2_MSG_KEXINIT sent

它挂在最后一步。我试着遵循这里的步骤,为OpenVPN设置正确的MTU并发现MTU是297。我将mssfix设置为250,然后尝试重新连接到OpenVPN服务器,然后再连接到ssh,但是结果是一样的--在'SSH2_MSG_KEXINIT发送‘步骤时挂起了它。你对这里可能发生的事情有什么建议吗?我怎样才能解决它呢?我已经尽我所能在堆栈溢出和其他地方搜索过了,但到目前为止,我遇到的解决方案似乎都没有效果。如果我能澄清以上任何一项/提供更多的信息,我将非常乐意。提前感谢您的时间和帮助!

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-07-21 18:36:40

好吧,最后我解决了这个问题,多亏了我同事的一条建议。显然,我只是需要换一条线:

代码语言:javascript
复制
comp-lzo no

在我的ovpn文件中:

代码语言:javascript
复制
comp-lzo yes

这就解决了问题!这个解决方案并没有出现在我在线搜索的任何地方,所以我想在这里肯定地分享它,以防它对其他人有用。干杯!

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

https://askubuntu.com/questions/1256830

复制
相关文章

相似问题

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