New SFTP plugin available now

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
dustojnikhummer
Junior Member
Junior Member
Posts: 11
Joined: 2021-09-11, 19:27 UTC

Re: New SFTP plugin available now

Post by *dustojnikhummer »

ghisler(Author) wrote: 2025-08-10, 08:13 UTC It's the job of the server to verify the code. A client can't just bypass security. Therefore something must be misconfigured on your server.

Have you tried entering an empty code on any other SSH client? Web Portal doesn't use SSH.
Yes. I was able to replicate it on my personal instance and same issue.

sftp -P user@server 2022 asks for a password and won't accept an empty TOTP token. It won't accept an incorrect one either, same with WinSCP. I'm using the out of the box SFTPGo config for SFTP, so maybe a key exchange algorithm that allows this bypass or something?
Does SFTPPlug have some kind of verbose logs we could look at?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Did you set a client certificate in the plugin? Some servers only require 2 factors, e.g. password+TOTP or password+client certificate.
Author of Total Commander
https://www.ghisler.com
dustojnikhummer
Junior Member
Junior Member
Posts: 11
Joined: 2021-09-11, 19:27 UTC

Re: New SFTP plugin available now

Post by *dustojnikhummer »

ghisler(Author) wrote: 2025-08-11, 08:58 UTC Did you set a client certificate in the plugin? Some servers only require 2 factors, e.g. password+TOTP or password+client certificate.
Nope, no client certificate. So, about those SFTPPlug logs?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

You can enable FTP logging in Configuration - Options - FTP to also log file system plugins like SFTP. But it will not save more than what you get in the little 2 line connection log window.

The SFTP plugin is open source, so you can modify it to your needs.
Author of Total Commander
https://www.ghisler.com
dustojnikhummer
Junior Member
Junior Member
Posts: 11
Joined: 2021-09-11, 19:27 UTC

Re: New SFTP plugin available now

Post by *dustojnikhummer »

ghisler(Author) wrote: 2025-08-12, 07:52 UTC You can enable FTP logging in Configuration - Options - FTP to also log file system plugins like SFTP. But it will not save more than what you get in the little 2 line connection log window.

The SFTP plugin is open source, so you can modify it to your needs.
If you are really sure it's an issue with SFTPGo I will move to their issues page, I just want to make sure.


tcftp.log:

Code: Select all

Connecting to: ftp.<domain>.cz
IP address: <IP>:22
Key exchange method: curve25519-sha256
Host key method: rsa-sha2-512
Encryption method (both directions): chacha20-poly1305@openssh.com
MAC (message authentication code) method (both directions): hmac-sha1
Server fingerprint:
73 67 D8 0E 60 A2 D................
Supported authentication methods: password,publickey,keyboard-interactive
Auth via keyboard interactive for user: ftp_user
Password: 
requesting password from user...
sending password entered by user
Authentication code: 
requesting password from user...
sending password entered by user
[libssh2] 51.510315 Failure Event: -18 - Authentication failed (keyboard-interactive)
libssh2_userauth_keyboard_interactive: PUBLICKEY_UNRECOGNIZED (18)
Authentication via password for user: ftp_user
Session startup (SFTP)
CONNECT \ftp_user
Get directory: \
DISCONNECT \ftp_user
Auth failed yet it let me in, interesting. Yeah I will probably move this, looks more like SFTPGo issue. Thanks!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Here is your problem:
Supported authentication methods: password,publickey,keyboard-interactive
According to the log, TC first tries with keyboard-interactive method, where it first sends the password and then the authentication code. This fails with error "Authentication failed (keyboard-interactive)".

Then TC tries authentication via password method, which doesn't ask for the second factor.

The server should not support the "password" method if it requires a second factor. Only keyboard-interactive should be enabled. Password authentication only asks for a password, no other factors are possible.
Author of Total Commander
https://www.ghisler.com
dustojnikhummer
Junior Member
Junior Member
Posts: 11
Joined: 2021-09-11, 19:27 UTC

Re: New SFTP plugin available now

Post by *dustojnikhummer »

ghisler(Author) wrote: 2025-08-12, 16:33 UTC Here is your problem:
Supported authentication methods: password,publickey,keyboard-interactive
According to the log, TC first tries with keyboard-interactive method, where it first sends the password and then the authentication code. This fails with error "Authentication failed (keyboard-interactive)".

Then TC tries authentication via password method, which doesn't ask for the second factor.

The server should not support the "password" method if it requires a second factor. Only keyboard-interactive should be enabled. Password authentication only asks for a password, no other factors are possible.
Understood, looks to me like SFTPGo is falling back to just the valid password even when it shouldn't. I will move this to SFTPGo issues then. Thanks!
Can I just ask for one more small thing? Could you please pin the current latest version of the 3.10 beta 9 to Page 1 so it's easier to find?
Thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

OK, done!
Author of Total Commander
https://www.ghisler.com
User avatar
Karel-TC
Junior Member
Junior Member
Posts: 2
Joined: 2025-08-21, 12:14 UTC

Re: New SFTP plugin available now

Post by *Karel-TC »

I did search for a solution and experimented my self a little bit, but it's time to ask the experts!
Situation: I often need to modify multiple identical php files. For this purpose I use Find files -> search in: i:\domains; k:\domains; m:\domains
The drive letters are network drives from webdrive. But performance with it is very bad.

I've got the sftp plugin working and connect with it to three servers. My only problem is that a search in: \\\Secure FTP\Server-1\home\admin\domains\; \\\Secure FTP\Server-2\home\admin\domains\; \\\Secure FTP\Server-3\home\admin\domains\
do not work!
It only searches in \\Secure FTP\Server-1\home\admin\domains\ and ignores the other two servers. I don't have this problem with i:\domains; k:\domains; m:\domains

I made sure all three servers were connected (green lockpad)

For me it is essential to find multiple files on multiple servers in one search.
How to make a search in: \\\Secure FTP\Server-1\home\admin\domains\; \\\Secure FTP\Server-2\home\admin\domains\; \\\Secure FTP\Server-3\home\admin\domains\ possible?
Last edited by Karel-TC on 2025-08-22, 14:00 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Searching in multiple file system plugin locations together isn't currently supported. I will check whether I can add it.
Author of Total Commander
https://www.ghisler.com
User avatar
Karel-TC
Junior Member
Junior Member
Posts: 2
Joined: 2025-08-21, 12:14 UTC

Re: New SFTP plugin available now

Post by *Karel-TC »

That would be great!
Thanks for your sublime program. 👍
User avatar
gewone
Junior Member
Junior Member
Posts: 70
Joined: 2008-03-06, 17:37 UTC

Re: New SFTP plugin available now

Post by *gewone »

Hi!

I have this SFTP host which sometimes (due to routing issues or whatever) drops, and then just need a reconnect to make things run smooth again. This, however, generates a "Connection failed; Continue?" dialog box with the SFTP plugin. First off, is there a way to "automat" the Continue! answering? And second, unfortunately, it seems that when I press Continue it does ignore the previously-failed-transfer file and jumps to the next, resulting in a missed file when the (perhaps long) transfer queue is finished. This is very unfortunate, am I missing out some option to retry-the-failed-file?

Cheers!
KozakMak
Power Member
Power Member
Posts: 545
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: New SFTP plugin available now

Post by *KozakMak »

ghisler(Author) wrote: 2008-08-13, 16:02 UTC Note: Only the XP version now needs the latest OpenSSL DLLs! The one for Vista and newer works without any extra dlls!
libssh2.dll not needed for Windows 11?
OS: Win11 | TC: latest x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

That's not what the note says.

The XP version uses a different libssh2.dll which uses the OpenSSL DLLs internally for encryption functions.
The version for Vista and newer Windows version uses a libssh2.dll which uses Windows functions for encryption which are missing on XP.
Author of Total Commander
https://www.ghisler.com
Post Reply