lollipopkit / flutter_server_box

ServerBox - server status & toolbox app using Flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用跳板机连接时无法连接服务器

Wuming-HUST opened this issue · comments

描述BUG

跳板机可以连接上,但是无法连接上内网的服务器
显示

认证失败,请检查密码/密钥/主机/用户等是否错误

SSHAuthAbortError(Connection closed before authentication)

但电脑上直接执行

ssh user@192.168.1.23 -J 跳板机

可以连接上服务器

ssh 跳板机

也能直接连接到跳板机

无论是密码连接还是密钥都是一样的错误。

期望结果

希望能通过跳板机连接内网的服务器。

实际结果

实际无法连接,显示查看错误

截图

Screenshot_20240613_135948

设备

系统:Android14
App 版本 1.0.930

更多信息

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Unable to connect to the server when using a springboard connection

DESCRIPTION BUG

The springboard machine can be connected, but cannot connect to the intranet server
show

Authentication failed, please check whether the password/key/host/user, etc. are incorrect.

SSHAuthAbortError(Connection closed before authentication)

But execute it directly on the computer

ssh user@192.168.1.23 -J springboard machine

Can connect to the server

ssh springboard

Can also be connected directly to the springboard machine

It's the same error whether it's a password connection or a key.

Desired result

I hope to be able to connect to the intranet server through a springboard machine.

actual results

Unable to connect actually, display error

screenshot

Screenshot_20240613_135948

equipment

System: Android14
App version 1.0.930

More information

一样的错误

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


same error

这个问题解决了吗,我也遇到了这个问题

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Has this problem been solved? I also encountered this problem.

这个问题解决了吗,我也遇到了这个问题

解决了,本质原因出在Ubuntu 24.04的系统,/etc/ssh/sshd_config.d目录下多了几个文件,删掉就好。你试试。

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is this problem solved? I also encountered this problem

Solved, the essential reason lies in the Ubuntu 24.04 system. There are a few more files in the /etc/ssh/sshd_config.d directory. Just delete them. you try.

/etc/ssh/sshd_config.d

我这边是时好时坏,不是说完全连不上

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


/etc/ssh/sshd_config.d

My side is up and down sometimes, it’s not that I can’t connect at all.

这个问题解决了吗,我也遇到了这个问题

解决了,本质原因出在Ubuntu 24.04的系统,/etc/ssh/sshd_config.d目录下多了几个文件,删掉就好。你试试。

我刚看了,我是22.04,这目录下没文件

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Has this problem been solved? I also encountered this problem.

Solved. The essential reason lies in the Ubuntu 24.04 system. There are several more files in the /etc/ssh/sshd_config.d directory. Just delete them. you try.

I just checked. I am on 22.04. There are no files in this directory.

我的服务器是CentOS7,我想知道你删掉的是什么文件,我好看看我这里有没有这样的问题

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


My server is CentOS7. I want to know what file you deleted so that I can see if I have such a problem here.

经过我测试发现,主是问题来自于路由转发,我在局域网中跳板服务器是好用的,从外网经过路由转发使用跳板机就会报错。但是其他软件类似的功能确没有问题,这让我不知该怎么处理了。还是很喜欢ServerBox在手机上使用的方便体验,希望能解决这个问题或是给我指个解决的方向。

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


After my test, I found that the main problem comes from routing and forwarding. The springboard server is easy to use in my local area network. However, when using the springboard server through routing and forwarding from the external network, an error will be reported. But there is no problem with similar functions in other software, which makes me don't know how to deal with it. I still like the convenient experience of using ServerBox on my mobile phone. I hope it can solve this problem or point me in the direction of solving it.