NOTICE: FULL O2 Cluster Outage, January 3 - January 10th
O2 will be completely offline for a planned HMS IT data center relocation from Friday, Jan 3, 6:00 PM, through Friday, Jan 10
- on Jan 3 (5:30-6:00 PM): O2 login access will be turned off.
- on Jan 3 (6:00 PM): O2 systems will start being powered off.
This project will relocate existing services, consolidate servers, reduce power consumption, and decommission outdated hardware to improve efficiency, enhance resiliency, and lower costs.
Specifically:
- The O2 Cluster will be completely offline, including O2 Portal.
- All data on O2 will be inaccessible.
- Any jobs still pending when the outage begins will need to be resubmitted after O2 is back online.
- Websites on O2 will be completely offline, including all web content.
More details at: https://harvardmed.atlassian.net/l/cp/1BVpyGqm & https://it.hms.harvard.edu/news/upcoming-data-center-relocation
How to login to O2
O2 cluster logins originating from outside of the HMS network require two-factor authentication.
Please see the Two Factor Authentication page for more information.
Once you have an O2 account, you can log in to the O2 cluster and submit jobs. Please reference the "Quick Start" section below to get connected to the cluster. If you need further detail on how to connect, you can refer to the appropriate section based on your operating system.
If you do not currently have an O2 account and would like to request one, please visit How to request an O2 Account.
Note: the "HMS ID" was formerly known as an "eCommons ID"
Quick start
You can connect to O2 using ssh (secure shell) at the hostname: o2.hms.harvard.edu
. If you're on Linux or Mac, you can use the native terminal application. If you're on Windows, you will need to install a program to connect to O2; we recommend MobaXterm. In either terminal or MobaXterm, type the following command:
ssh youraccount@o2.hms.harvard.edu
where you substitute youraccount
for your actual HMS ID in lowercase. You will be prompted to enter your HMS ID password, but note that the cursor will not move as you type your password. Once you authenticate, you'll be on one of the O2 login servers. You should not run anything computationally intensive on the login servers. Submit an sbatch
job or request an interactive session with srun
to run such processes instead. Reference the Using Slurm Basic for further information on submitting jobs.
If you need to have X11 forwarding enabled, reference the Using X11 Applications Remotely wiki page for further instructions.
Logging in on a Mac
Open the Terminal application (found through Applications > Utilities). Enter the ssh command with your HMS ID in lowercase (e.g. abc123), and press enter. When prompted, enter your HMS ID password.
If you are logging on from outside the HMS network, then two-factor authentication via your HMS Duo profile is required. You can choose which method to authenticate by: 1 for push, 2, for phone, or 3 for codes send via SMS. In the screenshot below, Duo push was selected. If you want to bypass selecting a method each time you need to authenticate, then you can set DUO_PASSCODE by following these instructions.
After you have successfully authenticated, you will see a welcome message, and will be able to enter commands after the prompt.
Logging in on Windows
To login to the O2 cluster if you have a computer running Windows, you can choose to either use MobaXterm or PuTTY. We recommend MobaXterm, as it has a larger available range of features.
Using MobaXterm
First, download and install MobaXterm for Windows: https://mobaxterm.mobatek.net/
Open the MobaXterm software and enter the ssh command with your HMS ID in lowercase (e.g. abc123), and press enter. When prompted, enter your HMS ID password.
Note: To avoid consecutive DUO authentication while connected to O2, you should set SSH-browser type to None.
After you have authenticated, you will see a welcome message, and will be able to enter commands after the prompt.
Using PuTTY
To enable graphical forwarding, first download and install Xming (https://sourceforge.net/projects/xming/). Any time you want to use graphical forwarding, double click Xming (all this does is put an icon in your Windows toolbar) before opening PuTTY.
Download and install PuTTY: https://www.putty.org/
Open the PuTTY software and in the Host Name field enter your HMS ID and O2 hostname in the form of: lowercase@o2.hms.harvard.edu
If you need X11 support, on the left panel, select Connection->SSH->Auth-X11, click the check box for "Enable X11 forwarding".
Click button "Open". When prompted, enter your HMS ID password.
After you have authenticated, you will see a welcome message, and will be able to enter commands after the prompt.
Troubleshooting logging into O2
Please do NOT send us or anyone else your password. Ever. We can assist you without knowing your password, and sharing accounts on the cluster is prohibited by Harvard security policy.
If you're having difficulty logging in to O2, check that you're using your HMS ID username and password and that the username has all lowercase letters. To change your HMS ID password, unlock your HMS ID or check whether it is locked, please see the following page: Reset your password or unlock your HMS account
Otherwise you can contact the HMS IT Service Desk (itservicedesk@hms.harvard.edu, or 617-432-2000) to resolve HMS ID account issues.
Your HMS DUO profile can, separately, also get locked due to multiple failed login attempts. If this happens, HMS DUO profiles should auto-unlock after 1 hour. If you're still facing problems, then send in a ticket to HMS Research Computing.
If you are experiencing massive latency logging in and are a frequent user of conda, you may want to refer to Conda on O2 | Usage of conda init .