pro.webssh.net: MFA / 2FA doesn't work anymore with latest Ubuntu 24 and Duo authentication
Bug description
I have been using this App for a while and having following issue
We have a Server that was on Ubuntu 18 and everything worked fine when I connected from my WebSSH app on iPad. We use Duo for MFA. Now we ugraded that server to Ubuntu 24 and when I approve Duo authentication prompt from my phone there is another pop-up shows up without any title and then i am unable to ssh to server. Here is the log, can you please help.
[2025-03-24 10:32:14 +0000] [INFO] Thank you so much for using WebSSH 29.1.1488 on iOS Version 18.3.2 (Build 22D82) ๐
[2025-03-24 10:32:14 +0000] [DEBUG] Launching Data Migration...
[2025-03-24 10:32:14 +0000] [DEBUG] Checking if settings need to be migrated...
[2025-03-24 10:32:14 +0000] [DEBUG] Data Migration Done!
[2025-03-24 10:32:14 +0000] [DEBUG] Launching Vacuum on the local database...
[2025-03-24 10:32:14 +0000] [DEBUG] 0 objects have been vacuumed
[2025-03-24 10:32:14 +0000] [INFO] WebSSH Engine started with success
[2025-03-24 10:32:14 +0000] [DEBUG] Device language : en
[2025-03-24 10:32:14 +0000] [DEBUG] Language bundle is not loaded. Will load this bundle : en
[2025-03-24 10:32:14 +0000] [DEBUG] WebSSH should be locked after delay (secs) : 60
[2025-03-24 10:32:14 +0000] [DEBUG] Application did become active
[2025-03-24 10:32:14 +0000] [DEBUG] WebSSH scenes must be locked
[2025-03-24 10:32:14 +0000] [DEBUG] Application will resign active
[2025-03-24 10:32:16 +0000] [DEBUG] Application did become active
[2025-03-24 10:32:16 +0000] [DEBUG] Can't lock WebSSH because delay not elapsed : 1 < 60
[2025-03-24 10:32:26 +0000] [DEBUG] No custom SSH Config File will overwrite this connection settings
[2025-03-24 10:32:26 +0000] [DEBUG] Private Key is encrypted because user have set a passphrase inside WebSSH.
[2025-03-24 10:32:26 +0000] [DEBUG] Now resolving 'xxxxxxxxxxxxx using 'auto' strategy...
[2025-03-24 10:32:26 +0000] [INFO] Empty knocking sequence, bypassing.
[2025-03-24 10:32:26 +0000] [DEBUG] Connecting to SSH...
[2025-03-24 10:32:26 +0000] [DEBUG] No SOCKS Tunnel launched. SSH connection will be established without any SOCKS hostname.
[2025-03-24 10:32:26 +0000] [DEBUG] Connected to :xxxxxxxxxxx
[2025-03-24 10:32:26 +0000] [DEBUG] Authentication using login/privatekey
[2025-03-24 10:32:26 +0000] [DEBUG] Authentication has failed
[2025-03-24 10:32:26 +0000] [DEBUG] Partial Success has been received
[2025-03-24 10:32:27 +0000] [DEBUG] Continue with challenge received
[2025-03-24 10:32:37 +0000] [DEBUG] Continue with challenge received
[2025-03-24 10:32:46 +0000] [WARN] Unable to continue with keyboard authentication
[2025-03-24 10:32:46 +0000] [ERROR] <EngineLog>
<ContinueKeyboardAuth>
<EngineVersion>9.5.0.99</EngineVersion>
<EngineStatus>2</EngineStatus>
<SshVersion>SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.8</SshVersion>
<continueKeyboardAuth>
<getKeyboardAuthResponse>
<sshRawPacket>Socket connection closed.</sshRawPacket>
<sshReadMessage>Socket connection closed.</sshReadMessage>
<error>Error reading keyboard auth response.</error>
</getKeyboardAuthResponse>
</continueKeyboardAuth>
<error>Socket connection lost.</error>
<error>Failed.</error>
</ContinueKeyboardAuth>
</EngineLog>
[2025-03-24 10:32:46 +0000] [DEBUG] Dismissing prompt...
[2025-03-24 10:32:47 +0000] [ERROR] Error : Provided credentials are bad
From Ravindra
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 24 (13 by maintainers)
Thank you @kohenkatz ๐ Will try to use your image on another server as Iโm running ARM64 here
I will see if I can publish an image to DockerHub that has everything in it except the Duo configuration (since thatโs per Duo customer).
Thank you a lot @kohenkatz ๐
Iโll use your work tonight in order to find the root cause inside WebSSH.