# Command line disable Two Factor Authentication

**URL:** <https://meta.discourse.org/t/command-line-disable-two-factor-authentication/121480>\
**Category:** Product Support\
**Created:** [June 27, 2019, 9:54am UTC](https://meta.discourse.org/t/command-line-disable-two-factor-authentication/121480 "2019-06-27T09:54:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [June 27, 2019, 4:38pm UTC](https://meta.discourse.org/t/command-line-disable-two-factor-authentication/121480/4 "2019-06-27T16:38:38Z")

</div>

> [@thaidb](#):
>
> Can we disable Two Factor Authentication by command line SSH ?

Yes, you can do this by updating the `enforce_second_factor` site setting to “no”. Enter the rails console and run:

```plaintext
 SiteSetting.enforce_second_factor = "no"

```

The available options for that setting are “no”, “staff”, and “all”.

---

_[View the full topic](https://meta.discourse.org/t/command-line-disable-two-factor-authentication/121480)._
