Access Your Desktop at Home Using VNC over SSH from Work

Accessing your Home computers VNC Server over SSH from Work

 

 

My Layout

 

<WorkComputer>---<Firewall>---<Internet>---<Firewall>---<HomeComputer>

Windows XP Pro                                           Redhat Fedora Core 1

192.168.0.x/24                                           192.168.2.0/24

                    NAT                        NAT

                                            Firewall forwards any request

                                            hitting port 80xx to HomeComputer

 

 

Command to run on WorkComputer to setup ssh tunnel

 

Cygwin sshd

Install http://www.cygwin.com and the sshd package to run the following on a windows box

 

        ssh -C -L 5901:localhost:5901 -p 80xx <hostname>.dyndns.org -l root

 

Putty

            See below

 

After enabling my vncserver on my home box I run the following on my work computer.

 

        vncviewer localhost:1

 

 

Data Flow

 

Workcomputer VNC Viewer

      |

Workcomputer:5901

      |

Workcomputer ssh process

      *

      |

Workcomputer ssh tunnel to HomeComputer

      |

Homecomputer:8022

      |

Homecomputer ssh process

      *

      |

Homecomputer:5901

      |

Homecomputer VNC Server

 

 

*Encryption starts and ends

 

 

Putty