Connecting on a Mac¶
Mac computers come with a Secure Shell (SSH) program called Terminal that you use to connect to the HPC using SSH. If you need to use software that uses a GUI, such as MATLAB or Maestro, make sure to use the -Y option in the second step below using X11 forwarding.
Note
If you use Mac OS X version 10.8 or higher, and you have XQuartz running in the background to do X11 forwarding, you should execute the following command in Terminal once before connecting:
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
You should keep XQuartz running in the background. If you close and restart XQuartz, you will need to execute the above command again after restarting. Do not use the Terminal application from within XQuartz to sign in to Explorer. Use the default Terminal program that comes with your Mac (see Step 1 in the procedure below).
Copy your SSH Keys from the cluster¶
Do not copy your keys to a shared or public computer.
Login to the Open OnDemand website (ood.explorer.northeastern.edu) and copy your public and private key from /home/$username/.ssh to your local computer. Your keys should match the pattern below:
$username-$generationdate : your private key
$username-$generationdate.pub : your public key
On your local computer put your keys in your ~/.ssh directory. And make sure the permissions are set as below 600 for private key and 644 for the public key:
-rw------- 1 s.caplins users 411 Oct 27 10:00 s.caplins-20261027T140127Z
-rw-r--r-- 1 s.caplins users 98 Oct 27 10:00 s.caplins-20261027T140127Z.pub
Set the permissions if needed:
chmod 600 s.caplins-20261027T140127Z
chmod 644 s.caplins-20261027T140127Z.pub
Connecting To Cluster On A Mac¶
Go to Finder > Applications > Utilities, and then double click Terminal.
At the prompt, type the ssh command where
<username>is your Northeastern username, and<ssh-key>is your private key from above.
Create a Config Entry¶
For ease of logging in, you should create a ~/.ssh/config file or add the following to your config file if you already have one. Just enter your username as it is on the cluster in place of $username and the SSH key with the timestamp as it is in your ~/.ssh directory. This is entirely optional.
Host explorer
HostName login.explorer.northeastern.edu
User s.caplins
IdentityFile ~/.ssh/s.caplins-20261019T173141Z
And then you can login via:
ssh explorer
X11 on Mac OS¶
From a Mac Terminal log in using the -Y option (ssh -Y <yourusername>@login.explorer.northeastern.edu).
Tip
If you used the -Y option to enable X11 forwarding on your Mac, you can test to see if it is working by typing xeyes. This will run a small program that makes a pair of eyes appear to follow your cursor.