meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| account:mfa [2026/06/02 08:57] – hkunz | account:mfa [2026/06/03 14:35] (current) – hkunz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| {{indexmenu_n> | {{indexmenu_n> | ||
| Line 11: | Line 11: | ||
| <WRAP danger> | <WRAP danger> | ||
| - | Besides the instructions on how to setup the tokens, | + | If you feel completely overwhelmed and/or do not understand a word, we suggest |
| </ | </ | ||
| Line 40: | Line 40: | ||
| * **Keep your hardware token / yubikey in your pocket**. If you just keep it plugged to your laptop, anyone can use it who gets hold of your laptop. If you absolutely want to keep the yubikey plugged in, buy a (more expensive) **yubikey with fingerprint authentication** | * **Keep your hardware token / yubikey in your pocket**. If you just keep it plugged to your laptop, anyone can use it who gets hold of your laptop. If you absolutely want to keep the yubikey plugged in, buy a (more expensive) **yubikey with fingerprint authentication** | ||
| * If you absolutely must store your 2nd factor in your password manager, make sure that you have **protected your password manager ** (auto lock, strong (secret) passphrase to unlock it). And also make sure that your laptop is always locked (screen lock) when you leave it unsupervised (i.e. if you leave the office shortly, etc.). Please note: **these two things are absolutely essential anyhow**. | * If you absolutely must store your 2nd factor in your password manager, make sure that you have **protected your password manager ** (auto lock, strong (secret) passphrase to unlock it). And also make sure that your laptop is always locked (screen lock) when you leave it unsupervised (i.e. if you leave the office shortly, etc.). Please note: **these two things are absolutely essential anyhow**. | ||
| - | * **Enable locking for the authenticator app** (PrivacyIDEA | + | * **Enable locking for the authenticator app** (PrivacyIDEA / Google / MS authenticator) holding e.g. PUSH and TOTP tokens, such that even if someone gains access to your phone cannot use it without **fingerprint** |
| ===== Overview of Token Types ===== | ===== Overview of Token Types ===== | ||
| ^Token type ^Application / Hardware Token ^Devices | ^Token type ^Application / Hardware Token ^Devices | ||
| ^PUSH |PrivacyIDEA authenticator | ^PUSH |PrivacyIDEA authenticator | ||
| - | ^OTP |PrivacyIDEA/ | + | ^OTP |PrivacyIDEA / MS / Google / etc. authenticator |
| ^Passkey | ^Passkey | ||
| ^Passkey | ^Passkey | ||
| Line 53: | Line 53: | ||
| * enable locking ⇒ make sure that the authenticator app / password manager is locked (automatically) and needs a fingerprint or a PIN before usage. | * enable locking ⇒ make sure that the authenticator app / password manager is locked (automatically) and needs a fingerprint or a PIN before usage. | ||
| - | * remove Yubikey ⇒ Yubikeys without fingerprint or PIN protection need to be removed from the laptop when not used and store in a secure location, i.e. together with your other keys in your pocket. | + | * remove Yubikey ⇒ Yubikeys without fingerprint or PIN protection need to be removed from the laptop when not used and stored |
| - | * Yubikey with fingerprint | + | |
| ===== Enrolling and Using 2nd Factors / Tokens ===== | ===== Enrolling and Using 2nd Factors / Tokens ===== | ||
| Line 66: | Line 65: | ||
| To setup the PUSH token, do the following: | To setup the PUSH token, do the following: | ||
| - | - Open [[https:// | + | - Open [[https:// |
| - Install the // | - Install the // | ||
| - Add a // | - Add a // | ||
| Line 75: | Line 74: | ||
| <WRAP safety> | <WRAP safety> | ||
| - | We strongly recommend to protect/ | + | We strongly recommend to protect/ |
| </ | </ | ||
| Line 89: | Line 88: | ||
| For all Authenticator apps the procedure is basically the same: | For all Authenticator apps the procedure is basically the same: | ||
| - | - Open [[https:// | + | - Open [[https:// |
| - If necessary, install the // | - If necessary, install the // | ||
| - Add a // | - Add a // | ||
| Line 98: | Line 97: | ||
| <WRAP safety> | <WRAP safety> | ||
| - | We strongly recommend to protect/ | + | We strongly recommend to protect/ |
| </ | </ | ||
| Line 111: | Line 110: | ||
| - Insert the Yubikey, start the //YubiKey Authenticator// | - Insert the Yubikey, start the //YubiKey Authenticator// | ||
| - | - Open [[https:// | + | - Open [[https:// |
| - Depending on your environment, | - Depending on your environment, | ||
| - Check the //YubiKey Authenticator// | - Check the //YubiKey Authenticator// | ||
| Line 124: | Line 123: | ||
| - Assign a //public ID// or simply use the // | - Assign a //public ID// or simply use the // | ||
| - Copy the //Secret key// and click //Save//. | - Copy the //Secret key// and click //Save//. | ||
| - | - Open [[https:// | + | - Open [[https:// |
| - Paste the //Secret key// (copied from the YubiKey Authenticator) to the// OTP Key// field (PrivacyIDEA), | - Paste the //Secret key// (copied from the YubiKey Authenticator) to the// OTP Key// field (PrivacyIDEA), | ||
| Line 134: | Line 133: | ||
| </ | </ | ||
| + | |||
| + | ===== Special Case: SSH and sudo ===== | ||
| + | |||
| + | We enforce 2FA also for SSH and sudo. For technical reasons, it is not possible authenticate over keycloak and therefore there is no single sign-on (SSO) for SSH and sudo. This means, that you will have to present your 2nd factor each time you login (SSH) or use sudo. When using SSH and sudo a lot, this can become painful, so there are two mechanisms in place to mitigate this situation a bit: | ||
| + | |||
| + | * if you use **key-based authentication** | ||
| + | * sudo has a **cache time of 2hrs**, which means a sudo session will ask for your password and 2nd factor when you use it the first time, but then only again if the session was idle for 2hrs. | ||
| + | |||
| + | <WRAP danger> | ||
| + | |||
| + | **Always protect your ssh (private) key with a passphrase**. **Never** | ||
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP notice> | ||
| + | |||
| + | Of course you want to avoid typing the passphrase each time you login. you can do that using **ssh-agent**. Here, you can unlock your (private) key once you login to your laptop/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | To setup key-based authentication and use the ssh-agent, please check the following tutorials (if necessary): | ||
| + | |||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | The second tutorial also explains how to use the ssh-agent. | ||