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
Schultheis
Member
Member
Posts: 145
Joined: 2004-03-04, 14:56 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Schultheis »

ghisler(Author) wrote: 2025-06-06, 08:59 UTC 2Schultheis
Oh, that explains it, it's as I suspected! SFTP seems to expect directories relative to your home folder, while SCP expects directories relative to the root of the system.
don't see any way to automatically switch to the correct directory
Either double click/press Enter on "~" in the list to go to the home directory. Or change the configuration of the connection from
your_server_name
to
your_server_name/home/your_user_name
Double-clicking on “~” works, but the configuration change does not work.
Schultheis
Member
Member
Posts: 145
Joined: 2004-03-04, 14:56 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Schultheis »

Schultheis wrote: 2025-06-07, 21:15 UTC
ghisler(Author) wrote: 2025-06-06, 08:59 UTC 2Schultheis
Oh, that explains it, it's as I suspected! SFTP seems to expect directories relative to your home folder, while SCP expects directories relative to the root of the system.
don't see any way to automatically switch to the correct directory
Either double click/press Enter on "~" in the list to go to the home directory. Or change the configuration of the connection from
your_server_name
to
your_server_name/home/your_user_name
Double-clicking on “~” works, but the configuration change does not work. Perhaps the link will only be set correctly during login.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

After double clicking on "~", click behind the path above the file window to copy it. Then use that (minus the "\\\Secure FTP\" part at the start) in the configuration. You can use either forward slashes or backslashes.
Author of Total Commander
https://www.ghisler.com
Schultheis
Member
Member
Posts: 145
Joined: 2004-03-04, 14:56 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Schultheis »

Thank you, Christian! That's the perfect solution! :-) I just had to leave out the name for the connection in the path ;-)
Schultheis
Member
Member
Posts: 145
Joined: 2004-03-04, 14:56 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Schultheis »

Now there is only one flaw: the larger the transferred file, the greater the displayed transfer speed appears to be (but only appears to be!) and, analogously, the smaller the expected remaining time. Apparently I can copy a file over 9 GB in size to my homepage at over 80 MB/s, a file approx. 1.5 GB in size at over 11 MB/s and a file 100 MB in size at less than 2 MB/s. Theoretically, I can achieve 3 MB/s, so this is realistic for the smallest file.
Schultheis
Member
Member
Posts: 145
Joined: 2004-03-04, 14:56 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Schultheis »

It is apparently always assumed that the transmission will take a maximum of 2 minutes, and the displayed data rate is adjusted accordingly. The error should be easy to find. Curious!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

No, the transfer does usually get faster the larger the file is, especially when downloading! The server starts with a reduced speed and increases it more and more to prevent packet loss when sending them too quickly.
Author of Total Commander
https://www.ghisler.com
Schultheis
Member
Member
Posts: 145
Joined: 2004-03-04, 14:56 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Schultheis »

Did you read my penultimate post? The TC reports with a big file (> 9 GB) a transmission speed of over 80 MB/s, but my connection only gives 3 MB/s. And a 9 GB file is not transferred in 2 minutes, as the TC promises. There is a strange error in the speed and the remaining time in the code, believe me! TC 11.51
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

The TC reports with a big file (> 9 GB) a transmission speed of over 80 MB/s, but my connection only gives 3 MB/s.
Maybe compression is enabled?
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1685
Joined: 2004-07-08, 08:58 UTC

Re: New SFTP plugin available now

Post by *JOUBE »

ghisler(Author) wrote: 2025-06-04, 08:55 UTC Beta 9 is available now:
https://www.totalcommander.ch/beta/sftpplug310b9.zip
The source code is unchanged because I only made changes to the libssh2 dll:
1. I have reduced the overhead from debug logging, in the hope that the login error can be reproduced with it now.
2. By user request, I have added support for login with password+second factor in separate messages, used by the Bitvise SSH server.
Please always publish the source code of the library - you've modified - along with the plugin. I haven't checked whether the license for the library requires this, but regardless, the plugin source code is less useful without the source code of the modified library.
Schultheis
Member
Member
Posts: 145
Joined: 2004-03-04, 14:56 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Schultheis »

ghisler(Author) wrote: 2025-06-09, 08:55 UTC
The TC reports with a big file (> 9 GB) a transmission speed of over 80 MB/s, but my connection only gives 3 MB/s.
Maybe compression is enabled?
No! It's a mp4 file that any compressor will bite its teeth out on! Furthermore, it doesn't take 2 minutes as stated, but much, much longer (I haven't measured it now, but after 2 minutes only a fraction of the file has been transferred).
Post Reply