Use PuTTY to connect to IU Sitehosting

On this page:


Use PuTTY to connect to IU Sitehosting

The following explains how to log into your Sitehost account using the PuTTY Secure Shell (SSH) client. PuTTY is available from IUware.

  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 Sitehost: ssh.sitehost.iu.edu
    • Test Sitehost: 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 even while you are typing. This is because the system does not echo what you are typing to prevent your passphrase from being visible.
  6. You will be prompted to authenticate using Duo. Choose one of the available options and complete your Duo authentication.
  7. After Duo authenticating, you will be at the command prompt. To switch to the Sitehost account you wish to access, enter the following command:
    become <account>

    Replace <account> with the group username of the Sitehost 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 IU Sitehosting via PuTTY

The following explains how to log into your Sitehost account using SSH keys via the PuTTY client. PuTTY is available from IUware. For instructions for generating SSH keys, see Generate and use SSH keys with IU Sitehosting.

  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 Sitehost: ssh.sitehost.iu.edu
    • Test Sitehost: 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 Sitehost 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, complete a Two-Step Login using the Duo option of your choice.
  12. At the command prompt, to switch to the Sitehost account you wish to access, enter:
      become <account>

    Replace <account> with the group username of the Sitehost 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.

This is document aydt in the Knowledge Base.
Last modified on 2019-08-29 16:35:18.

Contact us

For help or to comment, email the UITS Support Center.