# Master asks for 2FA but Agent asks again

**URL:** <https://community.thinlinc.com/t/master-asks-for-2fa-but-agent-asks-again/669>\
**Category:** Community Support\
**Created:** [7 August 2023 06:13 UTC](https://community.thinlinc.com/t/master-asks-for-2fa-but-agent-asks-again/669 "2023-08-07T06:13:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex005/user_avatar/community.thinlinc.com/martin/32/41_2.png) [@martin](https://community.thinlinc.com/u/martin)\
**Post date:** [7 August 2023 07:06 UTC](https://community.thinlinc.com/t/master-asks-for-2fa-but-agent-asks-again/669/2 "2023-08-07T07:06:41Z")

</div>

Hello @sswirski

Which authentication provider are you using?  
ThinLinc requires the passcode to be used twice due to how the ThinLinc client first connects and authenticates to the master server and then reconnects and authenticates to the agent server.

We have a post in our Knowledge Base, [How to set up One-Time-Password (OTP) authentication in ThinLinc](https://community.thinlinc.com/t/how-to-set-up-one-time-password-otp-authentication-in-thinlinc/409/1) describing how this can be achieved with Google Authenticator.

Port 22,904 and 9000 needs to be open for communication between the master and agent.  
Since the master will direct your user to the agent, this seems to be the case already.

Kind regards,  
Martin

---

_[View the full topic](https://community.thinlinc.com/t/master-asks-for-2fa-but-agent-asks-again/669)._
