Deprecated methods

From PHASTA Wiki
Jump to: navigation, search

PuTTY for Windows users

The PuTTY SSH client can handle ssh tunneling on Windows based machines. You can download it here.

When you open putty, enter jumpgate-phasta.colorado.edu in the "Host Name" box. Then click the + button next to SSH on the left pane (to expand the SSH tree node). Choose the "Tunnels" page. The start_vnc.sh script should tell you to run ssh -L59xy:portal1:59zw jumpgate-phasta.colorado.edu on your machine. Those instructions are OK but a better practice is to ignore what that script suggested for xy (it always suggests 05 currently) and instead use ssh -L59zw:portal1:59zw jumpgate-phasta.colorado.edu" where <code>zw varies for each new session created. If you get 23 that just means there were 22 sessions created before you created this one (but the plan is for you to keep using 23 until the machine gets rebooted). Enter 59zw in the "Source Port" box. Enter portal1:59zw in the "Destination" box (starting and click the add button). Putty is a little strange about saving the session which you want to do to avoid having to do all the above every time you re-connect. BEFORE you click the "Open" button, you want to name your session (your choice) and click save. Then in the future when you start putty you should be able to just click that saved session name and click load. Then click "Open" and login as normal. You will then be able to use a vncviewer as instructed by the script.

Example:

The script says: ssh -L5905:portal1:5923 jumpgate-phasta.colorado.edu your zw from the instructions above is 23 enter 5923 in the "Source Port" box enter portal1:5923 in the destination box.

Connecting to your VNC with PuTTY

Once we SSH to jumpgate (on the default SSH port 22), our main desktop on portal1 can be accessed via a VNC session as follows.

  1. The VNC server should already be running on portal1 using port 59zw.
    • To check the port, on portal1 run /opt/vnc_script/findsession.sh
    • To confirm the VNC server is running (and see port), run ps aux | grep vnc
  2. Open PuTTY on your local machine.
  3. Under "Session", SSH to USERNAME@jumpgate-phasta.colorado.edu:22, where USERNAME is your username on jumpgate, and 22 is the standard SSH port.
  4. Under "Session">"SSH">"Tunnels", select source port 59## and destination port portal1:59##, where ## is the two-digit number of your VNC session. Select destination local and click "Add".
    • We select local because we have a service (VNC Server) running on a machine (portal1) that can be reached from the remote machine (jumpgate), and we want to access it directly from the local machine.
  5. Confirm the dialog by clicking "Open", thus establishing an SSH connection between localhost and jumpgate, and tunneling localhost:59## to portal1:59## via this connection.
  6. Open RealVNC, and connect to localhost:##, which is shorthand for localhost:59##. VNC ports are enumerated starting with 5901, so any two digit port ## is assumed to be port 59##.
  7. You should now have access to your desktop on portal1. DON'T FORGET-- no meshing, solving, post-processing, EVEN MATLAB on portal1. To run memory and/or processor and/or graphics intensive jobs you need to create a terminal and type vglconnect -s viz00x where, at this time x is either 2 or 3.