所有连接均受密码保护时的 SSH 隧道
我在这里寻找了 SSH 隧道的几种场景, 但他们都不适合我。我的架构是这样的:
笔记本电脑------>网关------>远程。
很常见的情况,但是网关之间的连接---->远程也受密码保护。我需要我的应用程序(尽管是 NX 播放器)通过端口 22 连接到远程。 我可以通过 ssh 登录网关,然后登录远程(使用不同的用户/密码),所以应该可以做我想做的事情,只是不确定如何做。我在笔记本电脑/网关中使用 openssh。
I've looked for several scenarios of SSH tunneling over here,
but none of them worked for me. My schema is like this:
Laptop ------> gateway ------> remote.
Pretty common case, but the connection between gateway ----> remote is also password protected. I need my application (NX player though) to connect to remote via port 22.
I can login to gateway via ssh and then login to remote (with different user/password), so it should be possible to do what I want, just not sure how. I'm using openssh in laptop/gateway.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保网关上运行的 sshd 支持端口转发。
/etc/ssh/sshd_config
AllowTcpForwarding yes
make sure sshd running on gateway support port forwarding.
/etc/ssh/sshd_config
AllowTcpForwarding yes