Contents
Securing I-MATH account with MFA
There are two different options to secure access:
- SSH private/public keys
- MFA OTP authentication
Both can be configured in parallel and it is useful to configure both.
SSH via private/public key
- + Is most secure.
- + Handy if you use the same computer to login to I-MATH hosts.
- - Needs to be configured on each device which is used for SSH connection.
SSH via Time-based One-Time Password (TOTP)
- On the first login of a period, you have to provide a one-time-token (TOTP).
- + One Setup can be used on multiple devices
- - Needs manual interaction on each new session (=connection).
The second factor is required to access the ssh server if there is no ssh private/public key setup.
Login to ThinLinc. Warning Use with care: running the command will overwrite any current configuration, invalidating your current authenticating device!
The recovery codes can be regenerated with authenticator refresh and displayed with authenticator show codes.
If you no longer have the QR code, you can still configure most authenticator apps with the OTP secret. It is printed with the command authenticator show secret. TOTP login process
0-~> ssh username@ssh.math.uzh.ch
(username@ssh.math.uzh.ch) Password:
(username@ssh.math.uzh.ch) One-time token (see https://wiki.math.uzh.ch/public/MFA/IMathAccount): 123456
Preparation: Configuring MFA via TOTP
$ authenticator init
Restoring/regenerating recovery codes
Late configuration of authenticator apps
