如何在 Windows 中使用 PuTTY 创建 SSH 隧道? [英] How to create SSH tunnel using PuTTY in Windows?

查看:62
本文介绍了如何在 Windows 中使用 PuTTY 创建 SSH 隧道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在 Windows 中使用 PuTTY 创建 SSH 隧道,这与 Linux 中的此命令相同:

I need to create SSH tunnel with PuTTY in Windows, that would do the same as this command in Linux:

ssh -fN -L 2000:SomeIp:2000 myusername@myLinuxBox

我在 PuTTY 中尝试了很多选项,包括将 GUI 中的源端口设置为2000",将目标设置为SomeIp:2000".目标设置为本地(如 -L 开关建议的那样).

I tried many options in PuTTY, including setting source port in GUI to "2000" and destination to "SomeIp:2000". Destination is set to local (as the -L switch suggests).

我成功登录到我的 SSH 盒子,但没有进行端口转发.

I successfully login to my SSH box but port forward is not made.

这在 Windows 中是否可行,以便使用此端口 (2000) 的程序建立的所有连接都将通过此隧道?

Is this even possible in Windows, so that all the connections made by programs that use this port (2000) will go through this tunnel?

推荐答案

您可能希望使用 plink.exe 而不是 GUI 客户端.命令行语法与 iirc 兼容.

You probably want to use plink.exe instead of the GUI client. The command line syntax is compatible iirc.

这篇关于如何在 Windows 中使用 PuTTY 创建 SSH 隧道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆