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.
Open a terminal window.
Type vim ~/.bash_profile so that you open .bash_profile with vim.
Type i so that you are in insert mode in vim.
Add alias midway="ssh rccguestXXX@midway2.rcc.uchicago.edu" to your .bash_profile, replacing XXXX with the last four digits of your yubikey.
Press escape to exit the insert mode.
Type :wq to save your changes and exit vim.
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.
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.
vim ~/.bash_profile
so that you open .bash_profile with vim.i
so that you are in insert mode in vim.alias midway="ssh rccguestXXX@midway2.rcc.uchicago.edu"
to your .bash_profile, replacing XXXX with the last four digits of your yubikey.:wq
to save your changes and exit vim.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!)