Using Jazz  |  Getting Started  |  About the LCRC  |  Presentations  |  Status  |  FAQ  |  Search   |   Main Page  

Using SSH Keys on Jazz

Please read the Jazz SSH Policy page.

Reusable passwords are not allowed for remote access to Jazz. SSHv2 keys and Globus certificates are the only methods supported.

When connecting to Jazz, you will need to provide information that demonstrates you are who you say you are. This is traditionally done by providing your username and your password. However, this is not secure enough, and we now require other methods. SSH supports several different methods, one of which is the use of "keys".

Without going into the details of the protocol, this document will describe what you need to do to get your SSH program to use keys. This will involve generating and installing keys. Once these are in place, we highly recommend that you use an "ssh-agent" to reduce the number of times you need to type a password. 

Prepare your client environment

You will need to setup SSH keys on the machine that you use to log onto Jazz. This may be your laptop, your machine at home, a desktop at some other site, or any other computer not in the Jazz UNIX space.

Follow the instructions below based on the kind of system that you are using.

There are two files associated with a SSH user key (typically referred to as a key pair): Only SSH protocol 2 keys (types RSA and DSA) will be allowed on Jazz. We generally recommend RSA. The instructions for generating keys in this document are for generating RSA keys; read the ssh-keygen man page if you wish to generate DSA keys instead.

Below are the steps necessary to set up your ssh key access. In order to allow key-only access to Jazz, you will need to have at least one SSH user key pair. If you don't have a key pair, start with the Generate keys step. If you already have a key pair, you can skip to the Install your public key step.

WE REQUIRE THE USE OF A PASSPHRASE.

During the process of generating a key, you will be asked for a passphrase. Please select a strong passphrase. What consitutes a strong passphrase is detailed in the SSH Passphrases section of the SSH policy document.

There are a very limited number of circumstances where a key without a passphrase is acceptable. If you have a strong need to use one, please contact the support team prior to installing it. The reason for not allowing passwordless ssh keys is that with a copy of your private key, if it has no passphrase, a person can ssh as you to any host to which you've allowed access without knowing a password or passphrase.


Steps to set up keys for access to Jazz

Overview:

  1. Generate keys
  2. Install your public key
  3. Test your SSH installation
  4. Use an SSH Agent

Details

Instructions for the different types of OS and different SSH client packages for which we have experience are below. If you use a different client and need help or wish to provide the instructions on using that client, please contact support@lcrc.anl.gov.

  1. Generate keys:
  2. Install your public key:

    If you will be accessing Jazz for the first time, you will not be able to install your public key on Jazz without assistance. In order to install your key, you must take the following steps:

    1. Send us your SSH public key:

      • Visit your LCRC Personal Account Page and upload your public key. You will need to log on with your Jazz password.

        OR

      • Email your public key to the support team at support@lcrc.anl.gov. Please do not include the key within the body of your mail, but send it as an attachment. Once Systems has received the key, they will upload it and send you an email confirming that your key has been received and stating that it needs to be verified.

        Please do NOT proceed with the next step until you receive the email from the Systems team.

    2. Call the Help Desk at (630) 252-6813 to verify your identity and your key. During the verification process you will need to read part of the public key to the Help Desk staff. Please have it available before contacting the Help Desk.

    3. Once your key and id have been verified, the Help Desk will notify the Systems team. They will install the key in your authorized_keys file on Jazz and notify you thru email that your account is ready to be used.

    If you already have a SSHv2 key installed on Jazz, you can use the following methods to install an additional key:

  3. Test your SSH installation:

    At this point, if you were to ssh from your local machine to Jazz, instead of being asked for a password, you'll see something like this:

            Enter passphrase for key '/homes/<username>/.ssh/id_rsa':
         

    What you type at that prompt is not your Unix password. It is the passphrase you used when you created your key. That passphrase is not stored anywhere.

    In this mode of operation, you will be typing your passphrase each time you log in. There is a way, however, for you to reduce the number of times you need to type the passphrase.

  4. Use an SSH Agent:

    If you run an ssh-agent, you can tell it to remember the passphrase for a key while it is running.

You should now be all set to use ssh key-only access to Jazz.


WARNING: SSH requires that your home and ~/.ssh directories not be writable by anyone other than you. Do not change the permissions on these directories to allow group or world write access. If you do, SSH will not allow you to log on until someone on the Systems team corrects the permissions.

For more information on using SSH and how to obtain a version for your local machine, please read the MCS Offsite Access document. This document also contains information on why SSH is necessary and pointers to other useful sources of information on ssh and scp.

Last Updated: 6/27/2006

Help Security/Privacy Notice Disclaimer