Example template file
Click here for a demo
| Last Updated 21/06/2005:10:06:59by dynamicIP |
Download Putty and ViewerVNC to local PC.
open a command window and bring it to the directory of putty.
type
putty.exe -L 5901:127.0.0.1:5900 user@ip address.
putty.exe -L 3388:127.0.0.1:3389 user@ip address.
that takes care of the tunneling(you can batch script that nicely) and
then in your veiwer type
localhost:1
and it should work. Failed tunnel messages generally mean
there is no service listening on the other side from what i have seen.
Installation Instructions on server prior to useing remotely
Server
(Do all of this on the server machine)
- Make sure sshd is configured and set to run as a service.
Open up a Cygwin shell and type ssh-host-config. Answer configuration questions however you see fit until you get to "Do you want to install sshd as service?". Answer "yes". Continue answering questions until you're back at the $ prompt.
- Make sure the sshd service is running.
Go to Services and find the "CYGWIN sshd" service. If it's status is Stopped (it isn't running), Start it. Also check to make sure the "Startup Type" is "Automatic".
- Make the VNC server allow loopback connections.
As of VNC 3.3.4, the default behaviour is not to allow loopback connections (to make it so you can't have a VNC client connect to the VNC server on the same system). Also as of that version there is no way to enable loopback connections except through editing the registry. Under HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3 you need to add a REG_DWORD with Name="AllowLoopback" and Value="1" (decimal, or 0x00000001 in hex).
- Restart the VNC server so the loopback connection setting change will be enacted.
Client
Nothing other than the prereqs need to be done on the client as far as installation goes.
Runtime Instructions
After you have it setup, here's what you do to actually use it.
Server
As long as the SSH server and VNC server are running on the machine you want to connect to, you shouldn't have to do anything at runtime.
Client
- Open up a Cygwin terminal
- Type "ssh -L 5905:SERVERHOSTNAME:5900 USERNAMEONSERVER@SERVERHOSTNAME"...
...where SERVERHOSTNAME is the hostname of the machine running the SSH and VNC servers and USERNAMEONSERVER is a username on that server. Enter the password for USERNAMEONSERVER when prompted.
- Run the VNC client
- Connect to "localhost:5".
Through the magic of ssh port forwarding, VNC display 5 on your local machine is now actually screen 0 on the server.
- After you're done, just close VNC Viewer as normal, and type "exit" in the Cygwin terminal to close the connection to the server, then enter "exit" again to close the terminal.
VNC starts numbering it's screens at 0, which corresponds to TCP port 5900. The above example connects VNC "screen 5" to "screen 0" on the server.
and it should work. Failed tunnel messages generally mean there is no service listening on the other side from what i have seen.
58.6.38.53
Download Fastpush