New SFTP plugin available now

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

ghisler(Author)
Does the plugin support connections with empty password? I tried, but the plugin fails to login:
Error: Authentication by password failed!
Putty in Windows and ssh in openSUSE connect correctly to the same server with the same login and empty password. Also, the SFTP plugin connects correctly to another server where non-empty password is used. Is empty password the source of the problem, or anything else? SSH server is OpenSSH 5.2p1, openSUSE 11.2.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No idea, I have never tried it with an empty password. It defeats the purpose of using SFTP.
Author of Total Commander
https://www.ghisler.com
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Mishail wrote:2ghisler(Author)
Sure it has to and it does.
But as I said before curl.exe works with 7.19.7 libs, but sftp plugin doesn't.
May be problem can be solved by rebuilding plugin with latest libssh/libcurl headers/libraries... Just a thought.

Thanks a lot anyway. I'm using 7.19.4 libraries and all works pretty fine for me.
The newest version (7.20.1) now works fine with SCP enabled. Just thought you might want to know. ;)
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

ghisler(Author) wrote:It defeats the purpose of using SFTP.
Sometimes it's just a remote machine that does not contain any secure information. SSH is the most common way of accessing remote Unix/Linux machines, not because it's so secure but just because it's preinstalled everywhere and easy to use. So, it would be useful if the plugin supported empty passwords too.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

Boofo wrote:The newest version (7.20.1) now works fine with SCP enabled.
This is why I think that plugin should check and require some minimum version of libssh2. If there are bugs in older version, user will suffer when using it and he might not even realize that he needs to update the library. But if plugin clearly said that new library version is needed, user would know that he has to update. Result would be better expirience for user and less complaints and bug reports that aren't really bugs in plugin.
Forcing the user to upgrade might not always be the best idea in general, e.g. requiring some minimal Windows version. But this is not the case here. At this point, requiring newer library version does not leave anyone behind. Where old version worked, the new one will too. It might change someday, but it's true now.
Btw, I really admire Mr. Ghisler's dedication to backward compatibility, did you know that even latest TC 7.55 works just fine under NT 3.51? :) I guess that even this plugin might work there, but I can't access network neighbourhood there. No, I don't really need it (I wonder if anyone does), I played with it just for fun. :)

---
Empty passwords support:

http://web.hisoftware.cz/sob/download/sftpplug_src097beta-emptypass.patch
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Sob wrote:Empty passwords support:
Thanks, seems to work fine.

In case someone else wants to test but does not have Visual C++, here's the compiled WFX:
http://flint-inc.ru/Temp/sftpplug097emptypass.rar
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3869
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Jack! wrote:SFTP plugin (v0.97 beta). Having said that it's not possible for me to download or upload files that have a filename with a space in it using SCP mode to transfer files. Normal transfer mode works fine.
ghisler(Author) wrote:Indeed the OpenSSH SCP functions don't seem to be able to handle spaces in names, sorry.
May you have to doublequote the filenames for the function calls ?
#5767 Personal license
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

It's the funny thing, double quoting is done now and it's the exact reason, why filenames with spaces can't be accessed using SCP with newer versions of libssh2. They fixed the quoting bug in library and now when quoted filename is received, the functions take the quotes as part of filename, so it can't work.

Skip quoting in sftpplug and it will work again:
http://web.hisoftware.cz/sob/download/sftpplug_src097beta-noscpquote.patch

The good news is, that the active development of libssh2 is going now, so workarounds like this should not be required in future. Just report library bugs to it's authors.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3869
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2Sob: Thanks a lot for resolving this mystic behavior.

Do you have a compiled WFX for all non C++ developers like me ?

This way I can use it use it until libssh2 can handle it ...
#5767 Personal license
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

2Sob

Yes, a compiled version would be great, sir.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

This way I can use it until libssh2 can handle it ...
Libssh2 handles it fine now. By "workarounds like this" I meant quoting done in sftpplug that was added because of bug in old libssh2 and it's stalled developement.

--
I'm not sure if it's the best idea to have unofficial versions floating around, especially when the original author happily incorporates suggested changes into official one. But if you really can't wait and must have it now, here you go:
http://web.hisoftware.cz/sob/download/unofficial_sftpplug_src097plusbeta.zip
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3869
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Well, I tried SFTP Plugin 0.97 beta and libssh2.dll 1.2.5 from 7.20.1 libcurl SSL.
=> copy of filenames with spaces still fails :(

... but I will give your version a try and come back with the results.
#5767 Personal license
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

2sqa_wizard

But it only fails with SCP turned on, right?
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3869
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

But it only fails with SCP turned on, right?
Sure, without SCP it works fine (with and w/o spaces)
#5767 Personal license
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I'll be looking forward to your test results then. ;)
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
Post Reply