We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
场景:我这里的情况是,需要连接跳板机成功后在本地创建一个 SOCKS 代理,以方便浏览器通过该代理访问内网服务。因为内网服务太多了,所以一个一个映射到本地很麻烦,而且页面上可能会有脚本进行跨域请求或跳转,这时候需要真实的内网地址而非 127.0.0.1。
就类似 ssh -D 1080 user@remote_server 这样的命令。
ssh -D 1080 user@remote_server
非常感谢!
The text was updated successfully, but these errors were encountered:
SSH隧道那里可以吗?最新版支持地址设定,不是写死127.0.0.1
Sorry, something went wrong.
@zxdong262 不行。截图中的 R->L 和 L->R 分别对应 ssh -L 和 ssh -R 两个场景,然后 ssh 还支持第三种场景就是 ssh -D,这个是无法用前两种场景替代的。
ssh -L
ssh -R
ssh -D
例如某内网跳板机公网地址为 1.2.3.4,内网地址为 10.0.0.1,那么我可以用 ssh -D 1080 pxy@1.2.3.4 在本地开一个 SOCKS 代理,浏览器配置这个代理后,就可以在地址栏输入 http://10.0.0.2 来访问内网 10.0.0.2 的页面,而且任何端口都可以。这就是动态代理。
ssh -D 1080 pxy@1.2.3.4
http://10.0.0.2
PuTTY 对应的配置如图下,你可以看到 Destination 下面的三个单选框,它就对应了上面说的三种场景。
我还可以给更多例子:
上面这个是 FinalShell 的配置
上面这个是 TTYEmulator 的配置
大部分 SSH 工具都会支持这个选项,也侧面说明它是不可代替的。
感谢反馈,将在后续版本加入
#3423 Support dynamic port forwording(socks proxy)
ded4ed8
No branches or pull requests
What feature you'd like to see or proposal(期望什么新功能/特性或者建议)
场景:我这里的情况是,需要连接跳板机成功后在本地创建一个 SOCKS 代理,以方便浏览器通过该代理访问内网服务。因为内网服务太多了,所以一个一个映射到本地很麻烦,而且页面上可能会有脚本进行跨域请求或跳转,这时候需要真实的内网地址而非 127.0.0.1。
就类似
ssh -D 1080 user@remote_server
这样的命令。非常感谢!
The text was updated successfully, but these errors were encountered: