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

通过代理(跳板)解析域名 #2331

Open
PMExtra opened this issue Apr 28, 2024 · 0 comments
Open

通过代理(跳板)解析域名 #2331

PMExtra opened this issue Apr 28, 2024 · 0 comments

Comments

@PMExtra
Copy link

PMExtra commented Apr 28, 2024

新建 SSH 会话,Host 设为 host-name.internal ,这是一个内部DNS能够解析的域名。

然后设置 Proxy ,使用另一个 SSH 会话 (jumpbox) 作为代理(跳板)。

连接后提示

SOCKS version 5 protocol error
The session is disconnected, press Enter to reconnect.

如果我把 host-name.internal 会话的 host 修改成 IP 地址,则可以成功连接。

如果我先连接 jumpbox 会话,在 jumpbox 会话中再执行 ssh user@host-name.internal ,也可以成功连接。

所以诊断出 WindTerm 没有通过代理来解析域名,而是先在本地解析域名,再通过代理建立连接。

作为对比,同样的使用方式,在 SecureCRT 中一切正常, 可以使用 jumpbox 会话作为 Firewall 来连接 host-name.internal 主机。(SecureCRT 把代理叫做 Firewall)

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

1 participant