Use PuTTY to connect to Sitehost

On this page:


Use PuTTY to connect to

To log into your account using the PuTTY Secure Shell (SSH) client:

  1. Open the PuTTY client.
  2. In the "Host Name (or IP address)" field, enter the hostname for the server to which you want to connect:
    • Production : ssh.sitehost.iu.edu
    • Test : ssh.sitehost-test.iu.edu
  3. Click Open.
  4. To retain your settings, under "Saved Sessions", enter a session name and click Save.
  5. Enter the following:
    • Login as: Enter your IU username and press Enter.
    • Password: Enter your IU passphrase and press Enter.
      Note:
      The passphrase will appear blank while you are typing to prevent your passphrase from being visible.
  6. When prompted, authenticate via Two-Step Login (Duo).
  7. You will be at the command prompt. To switch to the account you wish to access, enter:
    become <account>

    Replace <account> with the group username of the account you wish to update.

  8. When prompted with "[sudo] password for <your personal username>", sign in with your personal IU passphrase.
  9. You will be at the command prompt in the directory /groups/<account>/, where <account> is the account you chose to "become".
  10. To exit a group account, you may use the command exit. To switch to a different group account, use the command become as you did in step 7.
Note:
For information about Unix commands, see Introduction to Unix commands.

Use SSH keys to connect to via PuTTY

To log into your account using SSH keys via the PuTTY client:

  1. Open the PuTTY client.
  2. In the "Host Name (or IP address)" field, enter the hostname for the server to which you want to connect:
    • Production : ssh.sitehost.iu.edu
    • Test : ssh.sitehost-test.iu.edu
  3. In the menu on the left, navigate to Connection and click [+] (the plus sign) for SSH.
  4. Click directly on Auth.
  5. In the "Authentication parameters" section, next to the "Private key for authentication:" field, click Browse.
  6. Locate the file storing your private SSH key and click Open.
  7. To retain your settings, in the menu on the left, select Session. Then, under "Saved Sessions", enter a session name and click Save.
  8. Click Open to log into the server with your SSH key pair.
  9. The PuTTY client will open and you will get a "login as:" prompt. Enter your personal IU username.
  10. At the PuTTY client prompt, enter the passphrase for your private key.
  11. When prompted, authenticate via Two-Step Login (Duo).
  12. At the command prompt, to switch to the account you wish to access, enter:
    become <account>

    Replace <account> with the group username of the account you wish to use.

  13. At the "[sudo] password for <your personal username>" prompt, enter your personal IU passphrase. You'll be taken to a command prompt in the directory /groups/<account>/, where <account> is the account you chose in step 12.
  14. To exit a group account, use the command exit. To switch to a different group account, use the command become as you did in step 12.