所有连接均受密码保护时的 SSH 隧道

发布于 2024-12-27 02:36:05 字数 235 浏览 6 评论 0原文

我在这里寻找了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小…红帽 2025-01-03 02:36:05

确保网关上运行的 sshd 支持端口转发。

/etc/ssh/sshd_config

AllowTcpForwarding yes

make sure sshd running on gateway support port forwarding.

/etc/ssh/sshd_config

AllowTcpForwarding yes

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文