//
you're reading...
Linux, linux security, linux server

Use VNC Through SSH (linux)


Some times its nice to tunnel through SSH. Perhaps you have SSH running but the firewall does not allow anything but SSH in. You can tunnel VNC (or any other service) through SSH by doing the following:

On the machine local to you establish an SSH connection to the remote machine with “Local (-L)”  port forwarding. This may seem confusing and often confuses me, where <-p PORT> is optional

ssh -L 5901:localhost:5900 username@HOST <-p PORT>

Once I have the connection established I can now use vncviewer to connect to my local host with the port specified

vncviewer  localhost:5901

have fun 🙂

Advertisements

About abdessemed mohamed amine

DZ-SECURITY

Discussion

One thought on “Use VNC Through SSH (linux)

  1. good luke 🙂

    Posted by aminesoft | May 23, 2009, 23:07

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Facebook

May 2009
S M T W T F S
« Apr   Jun »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

  • 365,182 Visit !
%d bloggers like this: