# How to disable SSO via SSH

**URL:** https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717
**Category:** Support
**Created:** [January 13, 2017, 6:13pm UTC](https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717 "2017-01-13T18:13:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ashleeyoung](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@ashleeyoung](https://meta.discourse.org/u/ashleeyoung)
#### Post date: [January 13, 2017, 6:13pm UTC](https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717/1 "2017-01-13T18:13:26Z")

</div>

Hi,

I’m now seeing a bunch of messages about SSO combined with HTTPS redirection, but for now, I’m currently unable to login as Admin to toggle the settings. Is there a way to do the same thing via SSH?

Thanks,

Ash

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 13, 2017, 6:31pm UTC](https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717/2 "2017-01-13T18:31:45Z")

</div>

As said in the first post of the official topic:

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045/1):
>
> What if you check it by mistake?
> 
> If you check enable\_sso by mistake and need to revert to the original state and no longer have access to the admin panel, visit /users/admin-login and follow the instructions.
> 
> OR, from server console run:
> 
> cd /var/discourse  
> ./launcher enter app  
> rails c  
> irb \> SiteSetting.enable\_sso = false  
> irb \> SiteSetting.enable\_local\_logins = true  
> irb \> exit  
> exit

---

<div class="post-metadata">

### Author: ![ashleeyoung](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@ashleeyoung](https://meta.discourse.org/u/ashleeyoung)
#### Post date: [January 13, 2017, 6:52pm UTC](https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717/3 "2017-01-13T18:52:34Z")

</div>

I didn’t see it, but it worked liked a charm. Thank you so much!!! Beer’s on me if we ever meet.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [January 13, 2017, 10:38pm UTC](https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717/4 "2017-01-13T22:38:08Z")

</div>

There’s also the lovely admin login page at `/users/admin-login`, which will log you in by sending an email 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 20, 2019, 11:06pm UTC](https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717/5 "2019-04-20T23:06:28Z")

</div>



---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 24, 2019, 5:55pm UTC](https://meta.discourse.org/t/how-to-disable-sso-via-ssh/55717/6 "2019-04-24T17:55:07Z")

</div>


