shim.gif Clark University Math and Computer Science Department Worcester MA
  HomeWelcomeFacultyCoursesJoin UsResourcesAnnouncements
shim.gif

Directions for Remote Access to the Linux Lab from a Windows Machine

You should read all of the following and understand before you actually attempt to perform it. It will most likely be easiest to print out a set of these directions and have them available offline.

Note:If you have no intention of running anything graphical, you do not have to perform the following. You can use the SshWin client without VNC to connect. For a list of common commands you can use with the command line, click the Linux Commands link on the left.

Two programs are required to connect to the lab, an ssh client and vnc viewer:
  • First download and install the ssh.com client. The instructions for use can be found here. (Note: This is an external link. If broken please email the webmaster)
  • Download vncviewer.exe.
Now you need to configure the Ssh.com Client
  • Start the "SSH Secure Shell Client"
  • Click Edit and choose Settings
  • Click on the Tunneling Option and check "Tunnel X11 connections." Do not click OK. Here is a screen shot.
  • Under the Tunneling option is an Outgoing option.
  • Click "Add" in the Outgoing options window
  • IMPORTANT: The destination port has to be unique for each person currently logged into the lab. Therefore, this number will have to be determined each and every time you wish to log into the lab. We will determine this number later.
  • Fill in the values as shown here
  • Click OK twice for all the settings but do not close the client yet.
  • Use the client and connect to Babbage. Click the "Quick Connect" button and enter your username that you have for the lab and babbage.clarku.edu for the host name. You will then be prompted to enter your password, this is the password that you use in the lab. Any other questions, see the link above for the Ssh.com clients user documentation
Determining the destination port number
  • Now that you are connected to babbage, you must ssh into ullman. Then type the command "vncserver" and press enter. (Vncserver in the program that will send all of the graphical information to your computer and, therefore, it is the program that determines your unique destination port number)
  • If this is your first time connecting, vncserver will ask you for a password. Type one in and press enter. Don't forget it, you will need it later!
  • If other people are logged on you will see lots of Warning messages stating "Warning: ullman:# is taken because of /tmp/.X#-lock".
  • After any warnings, you will see the line "New 'X' desktop is ullman:#"
  • That number is the destination port number that has been assigned to you for this log in session. Here is a screen shot of what to look for.
Configuring Ssh.com client to use the destination port number
  • Now you have to go back to Edit->Settings->Tunneling->Outgoing->Edit
  • IMPORTANT: You must put a 59 in front of the number. Example, if you got desktop number 1, you would enter 5901 for the destination port. If you got a 10 for a desktop number, you would enter 5910.
  • Now you can fill in the destination port with the number you got above
  • Click OK to leave the settings
  • NOTE: From experience, I have noticed that the client will crash if you press the "Quick Connect" button while connected. So be careful
  • This next step is a limitation of the Ssh.com client. In order for the new settings to take effect you must disconnect and reconnect.
  • Click File and then Disconnect
  • Then reconnect to babbage.clarku.edu for the new settings to take place
  • Finally, ssh back into ullman.
Finally done with the Ssh.com client
  • Now that you are connected to ullman with your unique destination port correctly set up, you can use vncviewer to connect graphically with the lab
  • Double click the vncviewer programming you downloaded earlier. When it prompts for the host name type "localhost:5950" as shown here.
  • It will then prompt you for your password. This is the password you created earlier, not your password for the Linux lab.
Important. Finishing up
  • When you are finished working with the lab please type exit in the Ssh.com client. This will run a script that will free up your display number for other users.
  • The client might prompt you to save your settings. Click yes to save any settings allowing you to only have to change the destination port number next time you connect to the lab

If you have any questions please email the administrators of the lab.

 
Contact the Webmaster at jbreecher at clarku.edu