HPC/Network Access/PuTTY Configuration
< HPC | Network Access
Jump to navigation
Jump to search
Introduction
The Carbon cluster is reachable from networks outside Argonne only through SSH tunneling or VPN. Either way has advantages and disadvantages. This page explains how to connect through an ssh tunnel.
Tunneling is a two-step process:
- Establish the tunnel.
- Connect through the tunnel.
Overview slides (pdf) and specifics for Carbon are detailed elsewhere. The PuTTY setup for both steps is illustrated below.
Note that the PuTTY Configuration panel is somewhat idiosyncratic to operate, notably regarding the concept of Sessions. Numerous screenshots on Google provide general guidance.
Configuration
Configure first session
- Open PuTTY. The PuTTY Configuration window will appear.
- If you already have a session named Mega shown in the bottom right list of the main panel, push the Load button.
- Click Data in the tree. In the Login details section of the panel enter your username.
- Auto-login username: username
- Click SSH in the tree
- Click the checkbox Don't start a shell or command at all in the Protocol options section.
- Click the "+" symbol near SSH to open its sub-tree.
- Click Tunnels. Under Add new forwarded port, enter:
- Source port: 33301
- Destination: clogin:22
- Push the Add button. A new entry will appear in the middle field, shown as:
- L33301 clogin:22
- The letter "L" denotes a port on the local host.
- Scroll to the top of the tree and click Session. Enter the host details:
- Host name: mega.cnm.anl.gov
- Port: 22 (leave at the default).
- Protocol: SSH (leave at the default).
- In the Saved Sessions field, enter Mega
- Push Save. The entry will appear in the list of saved sessions.
Configure second session
- In the PuTTY Configuration window, click Session at the top of the tree on the left.
- Select the Mega session and push Load. This session will be the basis for the next steps.
- Click SSH in the tree
- Uncheck the checkbox Don't start a shell or command at all.
- Click X11 in the tree.
- Click the checkbox Enable X11 forwarding.
- Set X display location to :0
- Click Tunnels.
- Select the L33301 entry and push Remove. There should be no forwarded ports listed.
- Under Add new forwarded port, enter:
- Source port: 6200
- Destination: mgmt03:6200
- Push the Add button.
- Repeat with the following settings:
- Source port: 6201 (not 6200!)
- Destination: mgmt04:6200
- Push the Add button.
- Repeat once more as follows:
- Source port: 6202
- Destination: sched1:6200
- Push the Add button.
- You should see tree entries:
- L6200 mgmt03:6200
- L6201 mgmt04:6200
- L6202 sched1:6200
- Scroll to the top of the tree and click Session. Enter the host details:
- Host name: localhost
- Port: 33301 (referring to the tunnel set up above as L33301.)
- Protocol: SSH (leave at the default).
- In the Saved Sessions field, enter Clogin
- Push Save. The entry will appear in the list of saved sessions.
Connecting to Mega
- In the PuTTY Configuration window, click Session at the top of the tree on the left.
- Select the session named Mega and push Load.
- Make sure the Host Name field shows mega.cnm.anl.gov.
- Push Open.
- When prompted, enter your Argonne account password. When accepted, the cursor will wait at the next line and nothing further will happen.
- Minimize the window.
Connecting to Carbon itself
- Open another PuTTY window.
- Select the session named Clogin and push Load.
- Make sure the Host Name field shows localhost.
- Push Open.
- Welcome to Carbon! - You should get our NOTICE TO USERS and a prompt saying login5 or login6 followed by /home/username.