Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help] 如何在不同的网络环境中获取不同的ssh连接,不和sshwifty容器在同一个网络中 可以用反向代理完成这个功能么? #167

Closed
Goend opened this issue May 16, 2024 · 3 comments

Comments

@Goend
Copy link

Goend commented May 16, 2024

No description provided.

@Goend
Copy link
Author

Goend commented May 16, 2024

前提: sshwifty可以被所有的机器访问到,但sshwifty不能直接连接到所有的机器(私网环境)
这种情况下 如何保持私网环境中也可以使用sshwifty连接到对应机器呢?

@nirui
Copy link
Owner

nirui commented May 16, 2024

你好,

Sshwifty使用的是操作系统提供的默认路由。如果运行Sshwifty的系统无法访问目标SSH主机,那么Sshwifty也肯定不能。

但是Sshwifty支持SOCKS5出站。如果可能的话,你可以试试在网络上能够访问所有对应SSH主机的位置部署一个SOCKS5代理服务器,然后让Sshwifty通过那个代理去进行连接。

@Goend
Copy link
Author

Goend commented May 17, 2024

好的 了解了 谢谢

@Goend Goend closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants