Unity
Unity
About
Services
News
Events
Docs
Contact Us
code
search
login
Unity
Unity
About
Services
News
Events
Docs
Contact Us
dark_mode
light_mode
code login
search

Documentation

  • Requesting An Account
  • Frequently Asked Questions
  • Cluster Specifications
    • Node Features (Constraints)
    • Node List
    • Partition List
      • Gypsum
    • Storage
  • Connecting
    • SSH
    • Unity OnDemand
    • Connecting to Desktop VS Code
  • Managing Files
    • Command Line Interface (CLI)
    • FileZilla
    • Globus
    • Scratch: HPC Workspace
    • Unity OnDemand File Browser
  • Software Management
    • Conda
    • Modules
      • Module Usage
      • Module Hierarchy
    • Unity OnDemand
  • Submitting Jobs
    • Batch Jobs
      • Array Batch Jobs
    • Interactive CLI Jobs
    • Unity OnDemand
  • Tools & Software
    • ColabFold

Documentation

  • Requesting An Account
  • Frequently Asked Questions
  • Cluster Specifications
    • Node Features (Constraints)
    • Node List
    • Partition List
      • Gypsum
    • Storage
  • Connecting
    • SSH
    • Unity OnDemand
    • Connecting to Desktop VS Code
  • Managing Files
    • Command Line Interface (CLI)
    • FileZilla
    • Globus
    • Scratch: HPC Workspace
    • Unity OnDemand File Browser
  • Software Management
    • Conda
    • Modules
      • Module Usage
      • Module Hierarchy
    • Unity OnDemand
  • Submitting Jobs
    • Batch Jobs
      • Array Batch Jobs
    • Interactive CLI Jobs
    • Unity OnDemand
  • Tools & Software
    • ColabFold

On this page

  • Configure SSH Keys
  • Storing SSH keys
  • Connection Details
  • CLI users
    • Editing the config file
    • Connecting via terminal
  • Windows and PuTTY
  1. Unity
  2. Documentation
  3. Connecting
  4. SSH

SSH Connection

The most traditional method of connecting to Unity is using an SSH connection. A shell is what you type commands into. The most common shell in linux is bash, which is what you will likely be using on Unity. SSH stands for “secure shell”.

Configure SSH Keys

The authentication method we use for SSH connections is with public/private RSA keys. You can read more about the public/private key exchange here.

For the purposes of this guide, you should know that there is a public key which is stored on the server, and a private key, which you keep on your local computer. Think of them like your name and your social security number, respectively. In very basic terms, you authenticate the public key with your private key and that allows you to login to Unity.

You must save your public key on Unity by adding it in your account settings. If you are unsure how to generate a public/private key pair, simply click on ‘Generate Key’. The public key will be added to our database, and the private key will be downloaded to your computer.

Storing SSH keys

It’s recommended that you place this downloaded private key in your home directory’s .ssh folder. This is C:/Users/YOUR_NAME/.ssh in Windows, /home/YOUR_NAME/.ssh in Linux, and /Users/YOUR_NAME in Mac. In the terminal, a shortcut for this directory is the ~ symbol.

This command will make the move on any operating system:

mv ~/Downloads/privkey.key ~/.ssh/unity-privkey.key

On Linux/Mac, you will need to change the permissions on the file due to its importance to security.

chmod 600 ~/.ssh/unity-privkey.key

It’s recommended that you also add a password to this file using the following command:

ssh-keygen -p -f ~/.ssh/unity-privkey.rsa

Connection Details

If you know what to do with this information already, you can skip the rest of this guide.

  • Hostname/Address: unity.rc.umass.edu
  • Username: NETID_school_edu
grade
Your username is in the format <organization username>_<organization>_edu. View your username here.

CLI users

We recommend connecting to Unity via the terminal. Windows, Mac, and most distributions of linux come with the OpenSSH client, which you can use to connect to Unity in your terminal.

If the file ~/.ssh/config doesn’t exist, create it. Copy the following contents to your Notepad and replace <NETID> and <PATH_TO_PRIVATE_KEY> to your specifications. Remember to save the file in a directory of your choosing, without an extension.

Host unity
     HostName unity.rc.umass.edu
     User <USERID>_<ORGANIZATION>_edu
     IdentityFile <PATH_TO_PRIVATE_KEY>

Editing the config file

Doing this with a text editor and a file explorer can be challenging because these user friendly methods don’t like files without an extension, and the ssh config file must not have an extension.

In Windows Notepad, you can save a file with no extension in the ‘All Files’ category, and windows will add the .txt extension regardless, which won’t work.

The Mac TextEdit doesn’t even have the option to save as .txt, which is tremendously unhelpful. You can make your current file plain-text formatted using ⌘-⇧-T, and you can add plain-text as a ‘Save as’ option in the config.

The most reliable way to put your OpenSSH config file in the correct location is to open the terminal and use the mv (move) command, which will rename files with no fuss.

mv path/to/source-file path/to/desination-file
mv ~/Desktop/ssh-config.txt ~/.ssh/config

Connecting via terminal

Once the OpenSSH config file is in place, you can connect to Unity in your terminal using the command ssh unity.

Using SSH to connect to unity

Using SSH to connect to unity

Windows and PuTTY

Windows users can use PuTTY to connect to Unity. Download and install PuTTY by following the link above. Be sure to select the 64 bit / 32 bit download depending on your system. Most are 64 bit, but if you are unsure 32 bit will always work.

Open PuTTY and enter hostname unity.rc.umass.edu on the main page

Configuring Host in PuTTY

Configuring Host in PuTTY

On the left sidebar, navigate to connection -> data, and enter your username.

Configuring Username in PuTTY

Configuring Username in PuTTY

On the left sidebar, navigate to connection -> ssh -> auth, and browse to your private key location.

Configuring SSH Key in PuTTY

Configuring SSH Key in PuTTY

Finally, in the main screen again, save the profile you created so you don’t have to enter this information every time. Enter unity as the profile name and click save. You can then double click on unity under saved sessions to connect to Unity right away.

Saving PuTTY settings

Saving PuTTY Settings

Last modified: Tuesday, November 21, 2023 at 4:42 PM. See the commit on GitLab.
University of Massachusetts Amherst University of Massachusetts Amherst University of Rhode Island University of Rhode Island University of Massachusetts Dartmouth University of Massachusetts Dartmouth University of Massachusetts Lowell University of Massachusetts Lowell University of Massachusetts Boston University of Massachusetts Boston Mount Holyoke College Mount Holyoke College
search
close