Use Terminal on a Mac to connect to Sitehost
To use the Terminal app in MacOS to log into your Sitehost account, first open the Terminal app located in Applications/Utilities
. Then continue with the appropriate steps, depending on whether or not you're using an SSH key:
- Without SSH key:
- If you're off-campus, you'll need to connect to the IU VPN (you'll be prompted for a secondary password).
- Enter the following command for the server you want to connect to, replacing
username
with your IU username:- Production Sitehost:
ssh username@ssh.sitehost.iu.edu
- Test Sitehost:
ssh username@ssh.sitehost-test.iu.edu
- Production Sitehost:
- Enter your IU passphrase and authenticate with Two-Step Login (Duo).
- To switch to the Sitehost-test or Sitehost account you wish to access, enter
become account
, replacingaccount
with the group username of the account you wish to assume. - When prompted with "[sudo] password for your-username", log in with your IU passphrase.
- You will now be in the directory
/groups/account/
, whereaccount
is the account you chose to become. - To exit a group account, use the
exit
command.
With SSH key:
- If needed, first refer to Generate and use SSH keys with Sitehost.
- Whether you're on or off-campus, you'll need to connect to the IU Groups VPN.
If prompted to select a role, choose the
IU-Linux-Hosting-Users
option. - Enter the following command for the server you want to connect to, replacing
username
with your group account username andSSHkey
with the path to your private SSH key:- Production Sitehost:
ssh -i SSHKey username@ssh.sitehost.iu.edu
- Test Sitehost:
ssh -i SSHKey username@ssh.sitehost-test.iu.edu
- Production Sitehost:
- Enter your SSH key password.
- You will now be in the directory
/groups/account/
, whereaccount
is the account you logged in with.
Note:
For more about Unix commands, see Introduction to Unix commands.
This is document ayxr in the Knowledge Base.
Last modified on 2023-08-02 15:57:19.