Blame

da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
1
# Logging in
2
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
3
## Interactive Login in CMS with 2FA
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
4
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
5
After enrolling a TOTP token with the procedure from [[2FA Enrolling|Main/2FA/Enrolling]], it is quite simple to use the One-Time Password (OTP) to login via SSH remotely.
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
6
7
You may want to have the Authenticator app already open to the token you enrolled, before beginning the SSH session, so that the session doesn't timeout before you are able to enter the code.
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
8
9
### Logging In
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
10
11
For comparison, your SSH login session without 2FA would appear similar to:
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
12
```
13
leblancd @ cadence > ssh leblancd@cmsloginmachine
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
14
Password:
15
Last login: Mon Oct 31 12:37:01 2022
16
Have a lot of fun...
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
17
leblancd @ cmsloginmachine >
18
```
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
19
20
In an SSH session with 2FA in CMS, it looks similar to this:
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
21
```
22
leblancd @ cadence > ssh leblancd@cmsloginmachine
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
23
Password:
24
OTP_Token:
25
Last login: Mon Oct 31 12:37:27 2022
26
Have a lot of fun...
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
27
leblancd @ cmsloginmachine >
28
```
29
30
The obvious difference being the `OTP_Token` prompt where you would enter your code provided by your phone's (Google) Authenticator within the lifetime of the code, and within the timeout of your SSH session.
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
31
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
32
### If you have a PIN connected to your token
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
33
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
34
If you have elected to set a **PIN** on your TOTP token when you enrolled, your PIN is combined with the 6 digit code provided by your phone's (Google) Authenticator.
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
35
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
36
***PIN + 6 digit OTP***
da94db Dave LeBlanc 2026-10-29 19:29:36
Logging in updated on Thu Oct 29 19:29:03 2026
37
38
*For example*, your phone's Authenticator app refreshes the OTP code every 30 seconds, so if:
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
39
- your PIN is `007121`
2f625f Dave LeBlanc 2026-10-29 22:00:38
Logging in updated on Thu Oct 29 22:00:32 2026
40
- in a 30 secs timeframe, your Authenticator app code is `998 001`
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
41
5512d0 Dave LeBlanc 2026-10-29 22:00:26
Logging in updated on Thu Oct 29 22:00:16 2026
42
Then, at the `OTP_Token` prompt, \
b05158 Dave LeBlanc 2026-10-29 21:59:58
Logging in updated on Thu Oct 29 21:59:35 2026
43
you would enter: `007121998001`