---
title: "What to do when I get locked out from the gateway after making a change in the authentication?"
description: "Locked out from the Geneos gateway after changing authentication settings can occur if the configuration is incorrect. To regain access, revert the setup XML files to a backup, remove the cache directory, and restart both primary and standby gateways."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004029509-geneos-what-to-do-when-i-get-locked-out-from-the-gateway-after-making-a-change-in-the-authentication/index.html"
---
The gateway saves backup copies of setup XML files when changes are made through the Gateway Setup Editor by default. This article assumes the setup XML files are accessible on the gateway's local file system, rather than remotely on Gateway Hub or ITRS Analytics. You should be able to regain access after reverting the changes and restarting the gateway.

If the affected gateway has a standby gateway configured, both primary and standby gateway should be stopped and the XML files reverted. We are providing the general steps below:

1. Login to the gateway server on a SSH / Telnet session

2. Locate the gateway setup XML files and find out where configuration changes were previously made. The XML files are text based and can be opened with a text editor. The Gateway Authentication section should be inside the XML tags ```
<authentication>
</authentication>

```. Depending on the configuration, the XML tags could be within an include file rather than the default gateway.setup.xml. The backup files having **.history** extension should be present at the same directory as the XML files.

3. Locate a directory named "**cache**" which should be under the gateway startup directory.

4. Stop primary and standby gateways.

5. Revert the changes to the XML files, and remove/rename the "**cache**" directory.

6. Start primary and standby gateways again.
You should be able to regain access after the gateways are started back up.


