Many thanks for your awesome work!
I just added 2-factor TOTP authentication (2fa) to my home Linux box as it seemed like a great idea and adds quite a bit of security to a world-accessible box. It works well with every interactive client I've tried (KiTTY, and ConnectBot on Android, for example). Rather than using Google's code, I'm using the pam_oath.so module supplied by my distro's build service.
So, I upgraded my TotalCommander SFTP plugin to v2.2, which you say supports 2fa. However, it's not working for me. The error returned by the SFTP plugin is as follows:
Code: Select all
UserAuthException: Exhausted available authentication methods
UserAuthException: [PROTOCOL_ERROR] authenticate returned false
I played with my server configuration to make sure it asks for the 2fa code second after asking for the password with the same results.
I looked carefully at the HowToGeek link posted in this thread and the only difference is the text used for prompts. My server prompts as follows:
Code: Select all
login as:
Using keyboard-interactive authentication.
Password:
Using keyboard-interactive authentication.
One-time password (OATH) for `user':
In the 5th line, "user" is replaced by the user name I typed in at the first "login as:" prompt.
I have looked around and find nothing about changing the prompt text. I guess I could modify the code and recompile, but I thought I'd ask here first.
Do you have any suggestions? Is the plugin maybe looking for certain prompt text?
Thanks again!