# WinBox Authentication with 2FA?

**URL:** <https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850>\
**Category:** General\
**Created:** [October 23, 2025, 7:45pm UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850 "2025-10-23T19:45:47Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandro1992](https://forum.mikrotik.com/letter_avatar/sandro1992/32/6_449c533f586939b6e5f246632a46421f.png) [@sandro1992](https://forum.mikrotik.com/u/sandro1992)\
**Post date:** [October 23, 2025, 7:45pm UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/1 "2025-10-23T19:45:47Z")

</div>

Hello dear Community

I am interested whether if it is possible to use 2FA while logging into RouterOS via winbox? like receiving a push code into some kind of authenticator app and etc…

Thanks

---

<div class="post-metadata">

**Author:** ![BartoszP](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/bartoszp/32/1386_2.png) [@BartoszP](https://forum.mikrotik.com/u/BartoszP)\
**Post date:** [October 23, 2025, 8:02pm UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/2 "2025-10-23T20:02:12Z")

</div>

Hi,

Simple answer is: No.

---

<div class="post-metadata">

**Author:** ![holvoetn](https://forum.mikrotik.com/letter_avatar/holvoetn/32/6_449c533f586939b6e5f246632a46421f.png) [@holvoetn](https://forum.mikrotik.com/u/holvoetn)\
**Post date:** [October 24, 2025, 5:49am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/3 "2025-10-24T05:49:15Z")

</div>

And yet ... with some workaround it can be done.

Enter ... Radius.

> [@\[FEATURE REQUEST\] Two Factor Authentication](https://forum.mikrotik.com/t/feature-request-two-factor-authentication/60077/33):
>
> That’s fantastic. That could probably replace a lot of propretary expensive solutions.

> [@2FA Configuration to Mikrotik router issue](https://forum.mikrotik.com/t/2fa-configuration-to-mikrotik-router-issue/176267/3):
>
> Thanks for your back. When I put my password without the 2FA code it’s working. And when I put my password + code 2FA that’s don’t working.

---

<div class="post-metadata">

**Author:** ![oreggin](https://forum.mikrotik.com/letter_avatar/oreggin/32/6_449c533f586939b6e5f246632a46421f.png) [@oreggin](https://forum.mikrotik.com/u/oreggin)\
**Post date:** [October 24, 2025, 8:46am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/4 "2025-10-24T08:46:23Z")

</div>

[https://www.incognia.com/the-authentication-reference/what-are-the-key-differences-between-2fa-and-mfa](https://www.incognia.com/the-authentication-reference/what-are-the-key-differences-between-2fa-and-mfa)

OTP is almost as weak as password as if someone gets your OTP hashkey, they could generate your OTP passkeys. I use MFA TOTP with User-Manager but my problem is every admin could see anyone else keys and passwords. Additional problem is the MSCHAPv2 auth, so we must store passwords in cleartext.

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 24, 2025, 11:26am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/5 "2025-10-24T11:26:13Z")

</div>

(moved)

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 24, 2025, 11:26am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/6 "2025-10-24T11:26:48Z")

</div>

False...

@holvoetn I thought someone would add the link to my guide, but nothing... 😢

> [@How to add 2FA to MikroTik logins](https://forum.mikrotik.com/t/how-to-add-2fa-to-mikrotik-logins/264179):
>
> Important: The RouterBOARD (and the device where the code is generated) must be perfectly synchronized with NTP. Otherwise, it is impossible to log in. No RouterBOARD sold since 2007 has an internal battery; the device ALWAYS starts with the wrong time. ASCII-7 table: \<SPACE\>!"#$%&'()\*+,-./0123456789:;\<=\>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^\_`abcdefghijklmnopqrstuvwxyz{|}~ Before starting, as a general rule, use only ASCII-7 characters on usernames and passwords, and never any other characters …

---

<div class="post-metadata">

**Author:** ![holvoetn](https://forum.mikrotik.com/letter_avatar/holvoetn/32/6_449c533f586939b6e5f246632a46421f.png) [@holvoetn](https://forum.mikrotik.com/u/holvoetn)\
**Post date:** [October 24, 2025, 11:33am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/7 "2025-10-24T11:33:29Z")

</div>

Apologies, I did search for it but yours did not pop up.  
Sorry about that.

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 24, 2025, 11:35am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/8 "2025-10-24T11:35:55Z")

</div>

I was kidding! All good 🙃

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 24, 2025, 11:37am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/9 "2025-10-24T11:37:01Z")

</div>

@sandro1992 It should rightly be remembered (as per link):

> Caveats:  
> Obviously, every time you open the terminal from WebFig/Winbox,  
> or when you reboot the device upon reconnection,  
> it will ask for the password again and you must use a new... OTP...  
> BUT this is precisely the point of using 2FA, One Time Password, so that a password is only valid once...  
> (or at least the OTP are 1 milion numbers that not deterministically repeats at least every 347d 5h 20m valid for just 1m30s)

---

<div class="post-metadata">

**Author:** ![abbio90](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/abbio90/32/2852_2.png) [@abbio90](https://forum.mikrotik.com/u/abbio90)\
**Post date:** [October 25, 2025, 4:14pm UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/10 "2025-10-25T16:14:44Z")

</div>

You can do it with user manager. I use it for VPNs, password + Google auth.

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 27, 2025, 8:33am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/11 "2025-10-27T08:33:36Z")

</div>

@abbio90 Già scritto......... incluso la guida per farlo........

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 27, 2025, 8:35am UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/12 "2025-10-27T08:35:40Z")

</div>

@sandro1992 News? Or is it just post & disappear?

---

<div class="post-metadata">

**Author:** ![CGGXANNX](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/cggxannx/32/55490_2.png) [@CGGXANNX](https://forum.mikrotik.com/u/CGGXANNX)\
**Post date:** [October 29, 2025, 6:18pm UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/13 "2025-10-29T18:18:36Z")

</div>

Could you also update your guide and add a big warning that the device must have NTP client properly setup and must be able to synchronize the time after boot before accepting logins? Many devices that MikroTik sell have no battery to keep a RTC running, and will have wrong date and time at boot. If left powered off for too long (a few minutes), without proper time synchronization, all the expected OTP codes will no longer match.

---

<div class="post-metadata">

**Author:** ![lurker888](https://forum.mikrotik.com/letter_avatar/lurker888/32/6_449c533f586939b6e5f246632a46421f.png) [@lurker888](https://forum.mikrotik.com/u/lurker888)\
**Post date:** [October 29, 2025, 8:25pm UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/14 "2025-10-29T20:25:21Z")

</div>

This is only a related thing, but I was **very** pleased to see that v7.21beta2 introduced support for ed25519-sk ssh keys (keys requiring attestation through FIDO2, e.g. using a Yubikey.)

For me at least this solves this whole area of problems wonderfully. Combined with an ssh tunnel, which is available in all Windows and standard CLI implementations, this is easily used to secure winbox access.

Additionally, this doesn’t rely on the clock being correct. And additionally, ssh through its fingerprint verification protects against man-in-the-middle attacks, which winbox doesn’t do.

---

<div class="post-metadata">

**Author:** ![rextended](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/rextended/32/67729_2.png) [@rextended](https://forum.mikrotik.com/u/rextended)\
**Post date:** [October 29, 2025, 10:26pm UTC](https://forum.mikrotik.com/t/winbox-authentication-with-2fa/265850/15 "2025-10-29T22:26:39Z")

</div>

Done, check if is ok...
