Difference between revisions of "Deprecated methods"
(Created page with "=== Windows === The PuTTY SSH client can handle ssh tunneling on Windows based machines. You can download it [http://www.chiark.greenend.org.uk/~sgtatham/putty/ here]. When y...") |
(→Windows) |
||
Line 1: | Line 1: | ||
− | === Windows === | + | === PuTTY for Windows users === |
The PuTTY SSH client can handle ssh tunneling on Windows based machines. You can download it [http://www.chiark.greenend.org.uk/~sgtatham/putty/ here]. | The PuTTY SSH client can handle ssh tunneling on Windows based machines. You can download it [http://www.chiark.greenend.org.uk/~sgtatham/putty/ here]. | ||
Latest revision as of 13:21, 9 September 2020
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.
- 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
- To check the port, on portal1 run
- Open PuTTY on your local machine.
- Under "Session", SSH to
USERNAME@jumpgate-phasta.colorado.edu:22
, whereUSERNAME
is your username onjumpgate
, and22
is the standard SSH port. - Under "Session">"SSH">"Tunnels", select source port
59##
and destination portportal1:59##
, where##
is the two-digit number of your VNC session. Select destinationlocal
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 thelocal
machine.
- We select
- Confirm the dialog by clicking "Open", thus establishing an SSH connection between
localhost
andjumpgate
, and tunnelinglocalhost:59##
toportal1:59##
via this connection. - Open RealVNC, and connect to
localhost:##
, which is shorthand forlocalhost:59##
. VNC ports are enumerated starting with5901
, so any two digit port##
is assumed to be port59##
. - You should now have access to your desktop on
portal1
. DON'T FORGET-- no meshing, solving, post-processing, EVEN MATLAB onportal1
. To run memory and/or processor and/or graphics intensive jobs you need to create a terminal and typevglconnect -s viz00x
where, at this timex
is either 2 or 3.