VNC: Tunneling with PuTTY
Well, theoretically it is impossible to access any computer in a LAN from outside. Not if you know how to do port-forwarding! Tunnels? Yeah. We're going to create tunnels.
OK. Let me share with you how to use PuTTY to do port forwarding. What you need is:
- a gateway (a computer with interface to both LAN and WAN) running SSH daemon.
- another computer running VNCserver in the LAN.
- a computer to connect from outside, having both PuTTY and VNCviewer.
Let us continue with the steps, with PuTTY first:
- Run PuTTY.
- In PuTTY, choose from Category menu, choose Connection-->SSH-->Tunnels
- Tick both options:
- Local ports accept connections from other hosts
- Remote ports do the same (SSH-2 only)
- Put Source port: 5901
- Put Destination: <LAN IP>:5901
- Click "Add" button.
- Choose Session
- Put gateway IP, port 22
- Click on "Open" button.
- Login to SSH via PuTTY
Next is what we need to do with our VNCviewer. In this example I'm using RealVNC. You may get a copy for free and test it out. Let's continue:
- Run VNC Viewer
- In Server field, put localhost:1
- Press "OK" button.
- That's all! Believe me, it's working already.
0 Comments:
Post a Comment
<< Home