首页 > 代码库 > 使用putty进行ssh tunnel远程内网机器

使用putty进行ssh tunnel远程内网机器

通常我们通过登录具有外网ip的远程机器来连接内网的机器;本文介绍,通过putty进行ssh tunnel,进而达到使用本机直接连接远程内网机器;

1,在putty中创建一个session,输入具有外网ip的node信息:


2,在connection以下找到SSH,打开SSH点击tunnel输入source port,source port是你想在本机使用的端口,destination是远程内网机器和端口;保证你的login的node可以和destination的机器可以相通:

3,回到session页面点击open登陆;

4,在本地浏览器以下打开http://localhost:9999,就能够看到远程60.2.2.44机器的8080port的服务了