openvpn.is
English
简体中文繁體中文EnglishРусскийفارسی

HomeBlogError

The guard shakes his head

OpenVPN says AUTH_FAILED: how to write one-time codes, connection limits, stray spaces, PAM, Access Server lockout, and a provider's separate account.

Compiled on

You reached the gate, and the guard says no
You reached the gate, and the guard says no 7777777kz, CC BY 3.0

AUTH_FAILED means you got as far as the server. Network, port and certificate are fine; only the last step failed.

Reaching this step means the hard part, the network, already worked. What remains is why the server does not accept this person: account, password, code, permission, or no room.

The six usual reasons

ReasonHow to tell
A space in the passwordType it instead of pasting
The wrong accountMany providers have separate website and OpenVPN accounts
One-time codeSome want the password with six digits right after it
Too many at onceDisconnect other devices
Expired or unpaidSign in to the website
Locked after too many triesWait fifteen minutes or ask the administrator
A guard at the door: AUTH_FAILED means the gatekeeper said no
A guard at the door: AUTH_FAILED means the gatekeeper said no Adam Jones from Kelowna, BC, Canada, CC BY-SA 2.0

Two accounts at one provider

Quite a few VPN providers show a separate user name and password for manual setup, long random strings. The e-mail and password you use on the website will always fail.

Your own server

What the server says
sudo journalctl -u openvpn-server@server -n 50
sudo tail -n 30 /var/log/auth.log

With PAM the password is the system account's and the account must be allowed to sign in. With a script, look at its return value.

  1. Try an account that surely worksIf it connects, it was the account
  2. Clear the saved password and type againAn old one may be remembered
  3. Check the server's clockOne-time codes fail when it is a minute off
In this order
A locked door: right password but no entry, so check username, cert and plugin
A locked door: right password but no entry, so check username, cert and plugin Jebulon, CC0

The server says more than the client shows

Server logMeaning
PAM: authentication failureSystem account or password
account expired, password expiredAs it says
User not foundMisspelled, mind the case
Auth Username/Password verification failedThe script refused
concurrent connectionsToo many at once
LDAP bind failedThe directory is down, everybody fails

If you cannot see it, tell the administrator the exact minute.

Three ways to enter a code

  1. Password in the password box, then six digits in a second box.
  2. Password and six digits together, no space.
  3. Only the six digits in the password box.

Codes change every thirty seconds; with less than five left wait for the next. A phone clock one minute off makes every code wrong: turn on automatic time.

The client remembers an old password

ClientClear it
OpenVPN GUIRight-click → clear saved passwords
OpenVPN ConnectEdit the profile and retype
TunnelblickKeychain entry, or in settings
OpenVPN for AndroidEdit → Basic, empty the password
NetworkManagerConnection settings

Less visible: auth-user-pass file reads from a file. Trailing spaces or Windows line ends in it fail on Linux.

Special characters

Quotes, backslashes and non-Latin letters are escaped by some clients. Try a temporary password of letters and digits. Some accounts need the part after @, some not.

Commercial providers

The usual mistake is the wrong account. Look for manual setup, OpenVPN credentials or router in the dashboard; only those work. Some providers have dropped OpenVPN altogether, such as Mullvad in January 2026, and then every password fails.

After many failures

  1. A fewWait minutes
  2. A dozenLocked for fifteen minutes to an hour
  3. MoreThe address is banned by fail2ban or similar
Most servers

A banned address gets no answer even to the handshake and looks like a network fault. If a hotspot works, that was it.

It worked until today?

Did you change the website password? Is another device using your slot?

The prompt flashes and disappears?

The client sends an old saved password. Clear it.

The administrator says the account is fine?

Let them try it on their computer. If it works there, the fault is on yours.

Two computers, one account?

Depends on the server; often the second is refused or pushes the first out.

New phone, no codes?

The administrator has to enrol you again.

Walk on

Nearby gates

Signposts: OpenVPN AUTH_FAILED, OpenVPN authentication failed, OpenVPN wrong password