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

Similar documents
Remote Access to Unix Machines

Campus VPN. Version 1.0 September 22, 2008

How to Tunnel Remote Desktop Through SSH on a Windows Computer

How. to: Connect Remotely. Updated by

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Remote Desktop In OpenSUSE 10.3

Mac OS X: INSTALLING TUNNELBLICK

RSA SecurID Token User Guide February 12, 2015

Installing the SSH Client v3.2.2 For Microsoft Windows

Securing Windows Remote Desktop with CopSSH

How to Use Remote Desktop over a Secure Connection (SSH)

Hallpass Instructions for Connecting to Mac with a Mac

Setting Up VNC, SSH Tunnels, and RDP

Connecting to the School of Computing Servers and Transferring Files

Remote Desktop Administration

freesshd SFTP Server on Windows

Author A.Kishore/Sachin VNC Background

F-SECURE MESSAGING SECURITY GATEWAY

Remote Desktop Gateway. Accessing a Campus Managed Device (Windows Only) from home.

Apple Mac VPN Service Setting up Remote Desktop

Using Virtual Machines

VCL Access. VCL provides access to Linux and Windows 7 Virtual Machines. Users will only see those images that they are authorized to access.

SSH Connections MACs the MAC XTerm application can be used to create an ssh connection, no utility is needed.

Securing Windows Remote Desktop with CopSSH

How to Remotely View Security Cameras Using the Internet

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

Windows 7 Hula POS Server Installation Guide

Pearl Echo Installation Checklist

Secure Shell. The Protocol

Aqua Connect Remote Desktop Services 3.7 User Manual

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 (

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

SSL VPN Service. Once you have installed the AnyConnect Secure Mobility Client, this document is available by clicking on the Help icon on the client.

How to Use? SKALICLOUD DEMO

OpenVPN over SSH tunneling

SSH and Basic Commands

The Remote Desktop Connection Handbook. Brad Hards Urs Wolfer

visionapp Remote Desktop 2010 (vrd 2010)

An Oracle White Paper July Oracle Linux and Oracle VM Remote Lab User Guide

Visualization Cluster Getting Started

If you have questions or find errors in the guide, please, contact us under the following address:

Remote Unix Lab Environment (RULE)

Browser Client 2.0 Admin Guide

Installation Guide. Research Computing Team V1.9 RESTRICTED

Setting up Remote Desktop

PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007

Using a login script for deployment of Kaspersky Network Agent to Mac OS X clients

Tunnel VNC through SSH Tutorial Version 1

Getting Started Guide. Getting Started With Your Dedicated Server. Setting up and hosting a domain on your Linux Dedicated Server using Plesk 8.0.

Setting up VNC, SAMBA and SSH on Ubuntu Linux PCs Getting More Benefit out of Your Local Area Network

Parallels Plesk Panel 11 for your Linux server

Installation Guidelines (MySQL database & Archivists Toolkit client)

How to use SURA in three simple steps:

Virtual Owl. Guide for Windows. University Information Technology Services. Training, Outreach, Learning Technologies & Video Production

Lab 1: Network Devices and Technologies - Capturing Network Traffic

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

Security Configuration Guide P/N Rev A05

The Desktop Sharing Handbook. Brad Hards

Using Remote Desktop with No-IP

Requirements Collax Security Gateway Collax Business Server or Collax Platform Server including Collax SSL VPN module

Unifying Information Security. Implementing TLS on the CLEARSWIFT SECURE Gateway

This chapter describes how to set up and manage VPN service in Mac OS X Server.

Shellshock Security Patch for X86

For paid computer support call

Test Case 3 Active Directory Integration

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

TWO WAYS TO SCHEDULE A SCOPIA VIDEO CONFERENCE BASED MEETING. 1- SCOPIA USER PORTAL 2- OUTLOOK SCOPIA MEETING PLUG-IN

User guide. Business

2X ApplicationServer & LoadBalancer Manual

Using Internet or Windows Explorer to Upload Your Site

Remote Monitoring and Control of the R&S FSL with a Web Browser

Instructions for Adding a MacOS 10.4.x Server to ASURITE for File Sharing. Installation Section

SETTING UP REMOTE ACCESS ON EYEMAX PC BASED DVR.

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

Elluminate Live! Access Guide. Page 1 of 7

2. The application will appear in the Applications folder. Once installed, launch Microsoft Remote Desktop from the Applications folder on your Mac.

Connecting to the Staff Desktop Service

RemotelyAnywhere Getting Started Guide

Yale Software Library

Extending Remote Desktop for Large Installations. Distributed Package Installs

How to use

Creating a Website with Publisher 2013

Universal Management Service 2015

Check current version of Remote Desktop Connection for Mac.. Page 2. Remove Old Version Remote Desktop Connection..Page 8

NETWORK SET UP GUIDE FOR

Web File Management with SSH Secure Shell 3.2.3

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

Installing and Configuring Lexia Reading Desktop Software

Installing the Microsoft Network Driver Interface

XenApp/Citrix Program Neighborhood Installation

How to use FTP Commander

Remote ESL On A Mac With OS-X Using SSH Tunneling & Port Forwarding

How to Remotely Access the SSSW K: Drive

MATLAB on EC2 Instructions Guide

5. At the Windows Component panel, select the Internet Information Services (IIS) checkbox, and then hit Next.

Remote Monitoring and Control of the R&S FSV with a Web Browser

Instructions for use the VPN at the Warsaw School of Economics

Transcription:

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities DNS name: turing.cs.montclair.edu -This server is the Departmental Server and is set-up to run a variety of applications and development environments into which both faculty, staff, and students can login to utilize its resources. Table of Contents I. Basic Connection pg. 2 II. Connection Using VNC Software from on Campus Locations pg. 4 III. Terminating a VNC Session pg. 6 IV. CONNECTION USING VNC SERVER FROM OFF CAMPUS pg. 7 V. CONNECTION USING VNC SERVER FROM OFF CAMPUS requires Mac OS and raw SSH -pg.

I Basic Connection -In order to log into the server, use ssh which is used to create a secure shell connection through PuTTY or similar software, to establish a connection. -The PuTTY program can be downloaded from the following url http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -Secure shell can also be established using ssh at the Mac OS X command line or any other Unix-like operating system that supports secure shell. Below is a sample screenshot using PuTTY to connect to turing. Insert the DNS (Domain Name System) name: turing.cs.montclair.edu in the host name section in the red circle shown in figure 1 Figure l -The red box in Figure l, contains the DNS name for the server, the default ssh port number, and the connection type of SSH. -Upon pressing open, you will be presented with a login screen seen below, e.g.

Figure 2 At this point, enter your MSU NetID and corresponding password. If you do not have a NetID, please see MSU s Office of Information Technology s instructions to obtain one. for faculty / staff: http://oit.montclair.edu/documentation/accounts/netid_how_to_activate_faculty_and_staff.pdf for students: http://oit.montclair.edu/documentation/accounts/netid_how_to_activate_students.pdf or see video at the hyperlink: http://www.njvid.net/showvideo.php?pid=njcore:23330 -Upon logging in successfully, your account will be placed in your home folder, having a corresponding directory of /home/local/admsu/(netid) -Now you can execute basic Unix commands from the Bash shell, change shells, or run scripts etc.; anything you could do from a terminal window on a Unix platform. -As always, please remember to logout of your session when you have finished. -This connection method will operate from either on or off campus locations provided you have a viable Internet connection.

II. Connection Using VNC Software from on Campus Locations -The use of Virtual Network Connections (VNC) Connections allows people with login rights to the Linux Departmental servers to connect through a graphical user interface (GUI) to access resources. -To establish a Virtual Network Connection, Virtual Network Connection software must be obtained. - One popular type of VNC software is TightVNC for Microsoft Windows environments. For a more comprehensive comparison of VNC clients, connectors to VNC servers, and other platforms see: http://en.wikipedia.org/wiki/comparison_of_remote_desktop_software -To connect to turing, you must first login to the machine and start a VNC Server Session. This is accomplished by typing in the command vncserver See the following screenshot for more detail: Figure 3 -If this is the first time you are using VNC, you will be prompted to create a password. This can be same as your NetID password or it can be different. However, it is this password and NOT the NetID password that must be entered in the following step. This password should have similar strength to that you use with your NetID. -Note the server connection number in this example is 41. Through this number, it is possible to establish a VNC session with a VNC Viewer, using the syntax <server_name>:<connection number (the number created in turing VNC server)> as seen in Figure 4

Figure 4 -After pressing connect, you will be presented with the window in Figure 5. -Enter the password you created to access your VNC sessions. Figure 5 -After connecting to the vncsession you will have a window to your desktop: e.g. -You will need to enter your NetID at the graphical login screen in Figure 7, doing so will result in the screen seen in Figure 8 Figure 7 Figure 8

III. Terminating a VNC Session -When you are ready to terminate your connection to the VNC session, issue the command below: vncserver kill :<session #> where the session number is the one you used to connect to the VNC server. -In figure 9, the command would be vncserver kill :41 You should receive similar output to the following once you entered the command: Figure 9 -If you only close the VNC server window, you will terminate your portal into the session but the VNC server will remain active.

IV. CONNECTION USING VNC SERVER FROM OFF CAMPUS - Windows Using IP tunneling and port forwarding, it is possible to connect to a VNC session from off campus. ---------------------- Disclaimer: The Department does not provide support for students personal computer problems and takes no liability associated with possible problems when attempting to use the techniques shown. These techniques may or may not work with your specific configuration. -We have seen varied degrees of success thus far. In some cases, connections have been successful; in others they have not. If you are unsuccessful with the process outlined here, a gateway through which you are trying to connect may be blocking the traffic, either via software or hardware. -It is recommended that in such situations, check any local software firewalls on your client computer, Overview -The procedure outlined below has been summarized and adapted from various sources in publically available documents accessible via the Internet. -To use port forwarding, you must first establish a secure connection via ssh as outlined in Section I of this document. You must also direct this connection to forward VNC traffic from your local machine to a VNC server session you establishd, according to Section II. As outlined below, this is a multi-part process. -PuTTY is shown for illustration purposes, but you may use any ssh client capable of forwarding IP traffic. Establish the connection to turing as shown in Figure 1, in Section I. -First, establish a vnc server session through the process outlined in Section IA of this document. After you receive a message with your VNC session number, similar to the one in Figure 3, logout of this ssh session. Now, reopen your ssh client. -You must modify additional options, but using the Tunnels section under SSH (Figure 10) In PuTTY, is needed to enable the port forwarding. Figure 10

In this section, all information will be entered as shown in Figure 11. -Enter the source port number as 5901. If you are using Windows, this port corresponds to port 1 of those ports from which VNC traffic can originate. -In the destination, enter the DNS name of turing, followed by a colon and the destination port number. Please note, this is different from the instructions mentioned concerning the session number, in Section II. The destination port number is the number of your VNC session + 5900. -The example above uses session 44, thus the port number is 5944. Once you have entered the appropriate information for the port number, click Add. Figure 11 The session can be saved and after saving, login into turing Figure 12

At this point, you are ready to initiate an ssh connection that directs VNC traffic from your local computer through the SSH tunnel to a VNC session on turing. If you are using PuTTY, return to the session tab, as shown in Figure I in Section II. You should get a login prompt, as shown in Figure II. Upon successful login, you should be able to connect to your previously established VNC session, using a VNC viewer, as outlined in Section II, with the following modification. Instead of entering turing.cs.montclair.edu: <session number> in the server box, use localhost with port 1, instead. Figure 13 At this point, you should be prompted for a password. Enter the password that you had established for VNC sessions as discussed in section II. If all goes well, you should see a screen similar to Figure 7 and upon authentication, a screen similar to Figure 8 at login. After you have completed work, close your VNC session and terminate the vnc server process using the process outlined in Section III. * Of note, unlike the method used to establish a VNC connection in Section II, the process used here DOES offer connection security as all traffic is tunneled through the ssh protocol. This is therefore the recommended way to utilize VNC to turing, both on and off campus if possible.

V. CONNECTION USING VNC SERVER FROM OFF CAMPUS requires Mac OS and raw SSH The procedure for connecting using Mac OS is similar to the method used in Windows, except that the tunnel is established via terminal window instead of with PuTTY, or similar ssh client. The following process is found in Section IIA, on a Mac: (all terminal commands are the same between mac and window) 1) Create a terminal window on your Mac. The terminal application is found in Applications > Utilities 2) Log into turing.cs.montclair.edu. Use your password for turing when prompted. ssh netid@turing.cs.montclair.edu 3) Start the vncserver. Note the display number it returns to you. 4) logout of turing by typing exit 5) Open a new terminal window to log back in turing and establish a secure ssh tunnel linking port 5901 on your local machine to port 590x on turing. Replace the x with the display number you noted earlier it is 4 in this example. The command format for this as shown, is ssh L <your local port>:127.0.0.1:<vnc session # + 5900> -C your_netid@turing.cs.montclair.edu. At the password prompt, enter the password for your NetID. How the data is inserted is shown in the image below 6) Start a VNC application on your Mac. This can be done through screen sharing; when someone access a computer's desktop remotely. People can use this feature so they can access computer files and servers that are far away from themselves. Screen sharing requires another computer connected to the local network with remote desktop (VNC) or the screen sharing option enabled. Once that happens, the computer shows up in the Shared section of the Finder like this: Clicking on Share Screen requests a password. Then you can take control of the other computer remotely.

The Screen Sharing application is stored in file:///system/library/coreservices/. You can drag it into the Dock and now it s available to connect to your box whenever you want. You still need a host and password if needed Screen sharing is also cross platform compatible so it can be used as a general purpose VNC client purposes. http://macs.about.com/od/usingyourmac/qt/mac-screen-sharing-how-to-connect-to-another-macs- Desktop.htm I use Chicken of the VNC which can be downloaded from the internet. The host you want to connect to is 127.0.0.1 (localhost), the display number is 1, and the password is you vncserver password (not your password on turing e.g. not your NetID password). There is also a VNC program that is included in the operating system. It can be found in Library/CareServices/ScreenSharing.app 7) When you hit the connect button, you should see your vnc session Note, it is better to use 127.0.0.1, here rather than localhost as seen in the method used in Section IV. 8) When you hit the connect button, you should see your vnc session..e.g. figure 7; once you authenticate using your NetID password, you should see the desktop screen, as shown in figure 8.

As always, please follow the instructions in Section III once you close the VNC window to end the VNC server process. If you don t the sessions hang about forever and use resources. There are only a limited number of vncservers that are supported at any one time so failure to kill the vncserver may result in others being prevented from accessing turing.