Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

One way to increase the security of computer systems is to use multiple factors for authentication. Typically, this will be two factors and follows the pattern of authenticating with a "knowledge" factor, which is something you know, like a password, and a "possession" factor, which is something that you have. The latter is typically a key or one time password often generated by a device. We have implemented a two factor authentication system for the HPC resources. The technology that has been chosen is called Duo from Duo Security. This is the same technology that was deployed for the University of Iowa Employee Self Service site.

...

Finally, note that two-factor authentication only applies to logging into a login node of the HPC systems. Once on the system connections between nodes all use the cluster ssh keys as before.

Anchor
advanced_setup
advanced_setup
Advanced setup

What follows is optional if you wish to reduce the interactivity just a bit. There are times when you do not want to have to interact with the console and you can specify a push to happen automatically to your primary device. To accomplish this you will need to use a generated key (preferably with a passphrase and ssh agent) and set the DUO_PASSCODE environment variable.

Mac/Linux


No Format
env DUO_PASSCODE=push ssh -o SendEnv=DUO_PASSCODE neon.hpc.uiowa.edu
Reading $DUO_PASSCODE...
Pushed a login request to your device...
Success. Logging you in...

...

In your script startup file, such as ~/.bash_profile, put the following

export DUO_PASSCODE=push

Windows 

Windows systems are a little more difficult to set up automatic push  from Duo. The description below uses Putty.

Image Added

Go to the Data section of Connection and add the DUO_PASSCODE variable.

Image Added

Click Add and your screen should look like the following.

Image Added

Go back to the Session category, select Default Settings, or whichever session is associated with the HPC system, and press Save.

Image Added

That will then have Duo send a push notification to your device whenever an ssh session is initiated. Note that you will need a smartphone or tablet for this to work.