OpenSourceEcon / BootCamp2019

Repository of syllabi, lecture notes, Jupyter notebooks, code, and problem sets for OSE Lab Boot Camp 2019
85 stars 99 forks source link

Midway Alias (an easier way to access Midway, for Mac) #27

Open rebekahanne opened 4 years ago

rebekahanne commented 4 years ago

Here are a few simple steps to edit your .bash_profile to create an alias to login into Midway2 more quickly. This is written for Mac, but these steps could be translated for Windows users as well.

  1. Open a terminal window.
  2. Type vim ~/.bash_profile so that you open .bash_profile with vim.
  3. Type i so that you are in insert mode in vim.
  4. Add alias midway="ssh rccguestXXX@midway2.rcc.uchicago.edu" to your .bash_profile, replacing XXXX with the last four digits of your yubikey.
  5. Press escape to exit the insert mode.
  6. Type :wq to save your changes and exit vim.
  7. Type source ~/.bash_profile

Now, you should just be able to type midway into your terminal window, and you will be prompted to enter a password using your yubikey.

(Thanks @EricHuang49 for asking this question!)