Tunnel VNC through SSH Tutorial Version 1



Similar documents
Debug Failed to connect to server!

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

Securing Windows Remote Desktop with CopSSH

Securing Windows Remote Desktop with CopSSH

Basic Exchange Setup Guide

freesshd SFTP Server on Windows

NeoRouter for Android

TELNET CLIENT 5.11 SSH SUPPORT

Basic Exchange Setup Guide

SETTING UP REMOTE ACCESS ON EYEMAX PC BASED DVR.

How to Bypass Your Corporate Firewall Using SSH Tunneling

How to Tunnel Remote Desktop using SSH (Cygwin) for Windows XP (SP2)

How to Remotely View Security Cameras Using the Internet

How to configure DVR and computer for running Remote Viewer via IP network

Install MS SQL Server 2012 Express Edition

Ultra VNC Repeater Guide

Secure File Transfer Protocol User Guide

Network Setup Guide. 1 Glossary. 2 Operation. 1.1 Static IP. 1.2 Point-to-Point Protocol over Ethernet (PPPoE)

OUTDOOR IR NETWORK CAMERA Series

Network/Floating License Installation Instructions

MultiSite Manager. Setup Guide

Secure Shell. The Protocol

How to Use? SKALICLOUD DEMO

ShadowControl ShadowStream

How to Tunnel Remote Desktop Through SSH on a Windows Computer

How to Setup and Connect to an FTP Server Using FileZilla. Part I: Setting up the server

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

Set up a Home Secure Global Desktop Enterprise Edition Remote Access Server

How to Setup PPTP VPN Between a Windows PPTP Client and the DIR-130.

Quick Connect. Overview. Client Instructions. LabTech

Testing New Applications In The DMZ Using VMware ESX. Ivan Dell Era Software Engineer IBM

Qvis Security Technical Support Field Manual LX Series

Introduction to TightVNC. Installation. TightVNC for Windows: Installation and Getting Started. TightVNC Version 2.6 Copyright 2012 GlavSoft LLC.

NAS 224 Remote Access Manual Configuration

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

How To Set Up A Vpn Tunnel Between Winxp And Zwall On A Pc 2 And Winxp On A Windows Xp 2 On A Microsoft Gbk2 (Windows) On A Macbook 2 (Windows 2) On An Ip

Installation Guidelines (MySQL database & Archivists Toolkit client)

Sharp Remote Device Manager (SRDM) Server Software Setup Guide

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

IIS, FTP Server and Windows

CASHNet Secure File Transfer Instructions

RemotelyAnywhere Getting Started Guide

Stealth OpenVPN and SSH Tunneling Over HTTPS

CREATING AN IKE IPSEC TUNNEL BETWEEN AN INTERNET SECURITY ROUTER AND A WINDOWS 2000/XP PC

MultiSite Manager. Setup Guide

Setting up FileMaker 10 Server

PFSENSE Load Balance with Fail Over From Version Beta3

Tunnels and Redirectors

FUJITSU Cloud IaaS Trusted Public S5 Connecting to a Virtual Machine (VM)

Linko Software Express Edition Typical Installation Guide

Setting Up VNC, SSH Tunnels, and RDP

How To Industrial Networking

Application Note 8: TrendView Recorders DCOM Settings and Firewall Plus DCOM Settings for Trendview Historian Server

Setting up Kerberos, AFS, and Putty on Windows Vista/Windows 7

NETWORK SETUP INSTRUCTIONS

Configuring Global Protect SSL VPN with a user-defined port

Windows Server 2008 R2 Initial Configuration Tasks

Avalanche Remote Control User Guide. Version 4.1.3

Instructions for Accessing the Advanced Computing Facility Supercomputing Cluster at the University of Kansas

Lab 8.3.3b Configuring a Remote Router Using SSH

Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC

How to install and set up the WinSCP software for Secure File Transfer

Site Monitor. Version 5.3

Secure File Transfer Protocol User Guide. Date Created: November 10, 2009 Date Updated: April 14, 2014 Version: 1.7

ipad Installation and Setup

How To Connect To A University Of Cyprus Vpn 3000 From Your Computer To A Computer With A Password Protected Connection

HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION

Establishing a VPN tunnel to CNet CWR-854 VPN router using WinXP IPSec client

7 6.2 Windows Vista / Windows IP Address Syntax Mobile Port Windows Vista / Windows Apply Rules To Your Device

RLM Server Guide. For Macintosh and Windows

The initial set up takes a few steps, but then each time you want to connect it is just a two set process.

Supervisor 10 Remote Access Users Guide Last Update: 10/27/14

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Miami University RedHawk Cluster Connecting to the Cluster Using Windows

Easy Setup Guide for the Sony Network Camera

Lab assignment #2 IPSec and VPN Tunnels (Document version 1.1)

Using WebVPN (webvpn.childrens.harvard.edu) to access shared and P drives, access , and use Remote Desktop

How to make a VPN connection to our servers from Windows XP

Maintaining the Content Server

IEI emerge and Milestone Systems Network Video Recorder. Setup and Integration Guide. Milestone Version 6.5 and emerge Version 3.

EVault Software. Course 361 Protecting Linux and UNIX with EVault

SGUL VPN Connection Guide for Windows 10

Remote Desktop How-To. How to log into your computer remotely using Windows XP, etc.

Internet Access to a DVR365

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3a

Printing Options. Netgear FR114P Print Server Installation for Windows XP

Basics of Port Forwarding on a Router for Security DVR s

Deploying the BIG-IP LTM system and Microsoft Windows Server 2003 Terminal Services

How To Remotely View Your Security Cameras Through An Ezwatch Pro Dvr/Camera Server On A Pc Or Ipod (For A Small Charge) On A Network (For An Extra $20) On Your Computer Or Ipo (For Free

Remote Desktop In OpenSUSE 10.3

ACTIVE DIRECTORY DEPLOYMENT

AT&T Global Network Client v6.8.0 and Passport IP Setup Instructions for Broadband VPN Access

HP Device Manager 4.6

AirStation VPN Setup Guide WZR-RS-G54

EVault Software. Course 301 Server Protection with EVault File and System State

Install and configure SSH server

How To Set Up A Backupassist For An Raspberry Netbook With A Data Host On A Nsync Server On A Usb 2 (Qnap) On A Netbook (Qnet) On An Usb 2 On A Cdnap (

Configuring the WT-4 for ftp (Infrastructure Mode)

Biznet GIO Cloud Connecting VM via Windows Remote Desktop

Transcription:

Tunnel VNC through SSH Tutorial Version 1 UltraVNC features a Data Stream Modification (DSM) plugin system which can provide an encrypted tunnel for the Virtual Network Computing (VNC) connection. This tutorial shows you how to use OpenSSH to tunnel VNC traffic as an alternative to using one of the plugins. Note: if the PC you wish to access does not have a static IP address assigned by your internet service provider (which is typically the case for a home PC) you may want to sign up for a free DynDNS account so you can connect to your home network using a host name that will automatically track your dynamic public IP address. PC You Wish to Access Remotely Secure Shell Setup Download OpenSSH for Windows from http://sshwindows.sourceforge.net/ on the PC you wish to control from a remote location. OpenSSH supports 3DES, Blowfish, AES and arcfour as encryption algorithms. Refer to http://www.openssh.com/ for complete details. Run the setupssh.exe executable program from the saved location. Select the defaults until you re prompted with the following. Only the Server is required for connecting from a remote PC, but the Client may be used to connect to other SSH servers if desired. Use the defaults and you ll be prompted with the following message.

Note: In order to connect from a remote PC you ll be logging in using your Windows username and password so ensure that it s a secure one. Open up a command prompt (click Start Run, type cmd, and press <Enter>) and Change Directory (CD) to the OpenSSH installation directory (Program Files\OpenSSH is the default) and then CD into the bin directory by typing cd \Program Files\OpenSSH\bin and press <Enter>. Use mkgroup to create a group permissions file for the local groups by typing mkgroup l >>..\etc\group and press <Enter>. Use mkpasswd to add authorized local users into the passwd file by typing mkpasswd l u <username> >>..\etc\passwd. For example, the following creates a group permissions file and adds the local user Jeff. The OpenSSH server listens for traffic on TCP port 22 by default. If your firewall setup does not allow connections on this port, it can be changed by editing the OpenSSH\etc\sshd_config file. In addition, some corporate firewalls do not allow outbound traffic on port 22 so it may be desired to change this to port 443 which typically is not blocked. In any event, the chosen port will need to be forwarded to the OpenSSH server PC on your router. See http://portforward.com/routers.htm for instruction on how to port forward using the router you have. Also, if you are running a software firewall you will need to open the selected port on it as well. Once the firewall is configured, you can start the service as shown in the following screenshot. For further details of the OpenSSH server configuration refer to the readme.txt file located in the OpenSSH\docs directory.

UltraVNC Setup Download UltraVNC from http://www.uvnc.com/download/index.html on the PC you wish to control from a remote location. This tutorial covers a subset of the full installation options of UltraVNC that are covered at http://www.uvnc.com/install/installation.html. Refer there for explanation of all the configuration options. Run the UltraVNC-102-Setup.exe executable program from the saved location. Select the defaults until you re prompted with the following screenshot. Only the Server is required for connecting from a remote PC (and we ll be using the viewer to check the installation), but the other components may be desired. See http://www.uvnc.com/features/index.html for a description of the Mirror Driver and DSM Encryption Plugin and http://www.uvnc.com/addons/index.html for a description of the Repeater. The Viewer is used to connect to other UltraVNC Servers.

Select the defaults until you re prompted with the following screenshot. Select Register UltraVNC Server as a system service, Start or restart UltraVNC service, Configure Admin Properties and Clean old VNC registry keys (only need to clean keys if this isn t the first install of UltraVNC) then click Next.

Select the defaults and install. Since UltraVNC requires a password and one hasn t been set yet, the following error will occur. Acknowledge the error and configure the admin properties as follows. Ensure that you assign a VNC Password (up to 8 characters) at this point so you can connect later. Since the OpenSSH server is running on the same machine as the UltraVNC server, we need to Allow Loopback Connections. If this is the only method that you ll use to connect to this machine it may be a good idea to select the LoopbackOnly option. I typically connect to other machines on my private network without using the secure shell so I ve left it blank. For an explanation of all the other options refer to http://www.uvnc.com/install/configuration.html.

Select OK and use the defaults for the remaining dialogs. After completing the UltraVNC server installation, test the loopback configuration by connecting using the viewer on the same PC. To do this, click Start Run, type vncviewer, and press <Enter> to open the viewer as shown in the following screenshot.

To attempt the connection, specify 127.0.0.1 or localhost as the VNC Server and select Connect. After selecting Connect, you will be prompted for the VNC password assigned in the administrative properties section above (not the windows user password). After entering the correct password, you will see the standard UltraVNC window of the local desktop which, in turn, shows the same UltraVNC window and so on as shown in the following screenshot. We just want to ensure that we connect without interference from any security software so disconnect using the Close Connection button (don t simply close the window).

Remote PC PuTTY Setup As a prerequisite to configuring PuTTY to connect to the PC you wish to control from a remote location, OpenSSH needs to be configured as described in the Secure Shell Setup section above. Download PuTTY on the remote PC. I use a portable version from http://socialistsushi.com/portaputty unzipped on a portable flash drive so I always have it handy, but you can download the standalone executable from http://www.chiark.greenend.org.uk/%7esgtatham/putty/download.html. I use mostly default settings with a few exceptions. I ve found that I get a more reliable connection during file transfers by setting the Seconds between keepalives to 15 seconds.

I also set up PuTTY to Auto-login as myself.

Set up the SSH tunnel by setting the Source port to the UltraVNC server s listening port (5900 is default) and a Destination of 127.0.0.1:5900 and select Add.

After selecting Add an item will be added to the Forwarded ports section as L5900 127.0.0.1:5900. In addition, 127.0.0.1 may be replaced by localhost, the PC s private IP address, the PC s name or the name/ip address of any other PC on your home network. I have three PCs on my LAN that have UltraVNC installed, each listening on a different port, and use the single OpenSSH server. I then set up tunnels for each PC. Define the remote PC s Host Name (or IP address), change the Port number if the default port 22 was not used in the OpenSSH\etc\sshd_config file, give the Saved Sessions a name and Save it for future use in the Session dialog shown in the following screenshot. Note: if the PC you wish to access does not have a static IP address assigned by your internet service provider (which is typically the case for a home PC) you may want to sign up for a free DynDNS account so you can connect to your home network using a host name that will automatically track your dynamic public IP address.

Refer to http://the.earth.li/~sgtatham/putty/0.59/htmldoc/chapter4.html#config for a full explanation of the PuTTY configuration. Once PuTTY has been configured to match your OpenSSH setup, select Open from the preceding dialog. The first time you try to connect you will receive the following warning. To add it to PuTTY s cache select Yes. If connection is successful, you will be prompted for your Windows password as shown below. After successfully entering the password you ll move to the user s home directory (\Documents and Settings\User).

UltraVNC Viewer Setup As a prerequisite to configuring the UltraVNC Viewer to connect to the PC you wish to control from a remote location, the UltraVNC Server needs to be configured as described in the UltraVNC Setup section above. Download the UltraVNC Viewer from http://sourceforge.net/project/showfiles.php?group_id=63887 on the remote PC. I have the viewer installed on a portable flash drive so I always have it handy. It is also possible to copy the vncviewer.exe, UnZip32.dll and Zip32.dll files from the UltraVNC server PC if these were installed above. The DLL-files are required only for the file transfer capability. There is no installation required to run the viewer so simply run the vncviewer.exe executable and connect to the local host VNC Server as shown in the following.

After selecting Connect, you will be prompted for the VNC password assigned in the administrative properties section above (not the windows user password). After entering the correct password, you will see the standard UltraVNC view of the remote desktop. When you finish your session, ensure that you properly close the UltraVNC connection using the Close Connection button and type exit in the PuTTY window to close out the OpenSSH session (don t simply close the windows).