The HPSS systems use NIM and the NERSC LDAP server to create an "hpss token" for user authentication. The HPSS token does not expire and users may generate new tokens as often as they wish and old tokens will still be honored. If a user wishes to disable previously generated tokens for security reasons NERSC consultants should be contacted.
Because HPSS passwords do not expire it is only necessary to generate a password one time for continued use of HPSS. This password is placed in a .netrc file for use by hsi, htar, pftp, and most ftp clients.
Automatic Token Generation for use at NERSC
Connection to HPSS from a NERSC system (Edison, Cori, etc.) is simple. The first time you try to connect using a NERSC provided client like hsi, htar or pftp you will be prompted for your NIM password which will generate a token stored in $HOME/.netrc. After completing this step you will be able to connect to HPSS without typing a password:
Generating .netrc entry...
If you have an existing $HOME/.netrc file and you are having problems connecting to either HPSS system try moving this file to temp.netrc and re-connect to HPSS. If the problem persists contact NERSC account support.
Manual Token Generation for use at NERSC
Login to NIM and select "Generate an HPSS token" from the "Actions" menu. For example, see the screenshot below:
This will provide you with a token (an encrypted string) in the pale yellow highlighted box that may be used on any machine in the NERSC network by any supported HPSS client (hsi, htar, pftp, or ftp). See below for a screenshot showing token generation:
Below the pale yellow highlighted box you are also provided with a sample .netrc file with your updated password. Creating a .netrc as shown and placing it in your home directory will enable pftp, hsi, htar and some ftp clients to read it upon starting a new session to HPSS and avoid the need to enter your username/password. Permission on your .netrc file should be set to 600 (chmod 600 ~/.netrc).
Token Generation for Remote Access to NERSC HPSS
To generate a string for access to NERSC HPSS from outside the NERSC network login to NIM and select "Generate an HPSS token" from the "Actions" menu. Ignore the password provided and select "Please use this link to specify a different IP address". Then enter the IP address of the system from which you wish to connect to HPSS. Note that this prefills the box with the IP address that the browser is running on and this may not be the system you intend to access HPSS from. Enter the correct IP address and select "Generate Token". See the screenshot below showing the screen to enter the IP address:
This will provide you with a password (an encrypted string) in a pale yellow highlighted box that may be used by on any machine within the same class C network as the IP address provided. You may place the encrypted string in a .netrc file for hsi or htar to read. This will avoid the need to enter your usename/password. A sample .netrc file with your correct password will be provided below the pale yellow highlighted box.