有个问题。我坐在一个封闭的网络上,我需要访问 DMZ 中的 WebService。WebService 通过非 80 TCP 端口(我们称之为 1234)提供,该端口被封闭网络的防火墙阻止。
但是,我确实可以通过 SSH 访问 DMZ 中的服务器(我们称其为“dmzhost”),所以我认为解决方案是简单地建立这样的隧道:
ssh -L 4321:wsIpHere:1234 username@dmzhost
之后,我应该能够通过 URL http://localhost:4321访问 WS 端点。没运气。我用我的网络浏览器试了一下,得到了消息
Cannot bind to address "http://localhost:1234/" No component registered on that endpoint
我想我在这里的某个地方错过了重点。有没有人知道我做错了什么?
谢谢!