New SFTP plugin available now

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

Moderators: Stefan2, white, Hacker

Post Reply
User avatar
Horst.Epp
Power Member
Power Member
Posts: 5454
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: New SFTP plugin available now

Post by *Horst.Epp »

hck wrote: 2022-11-26, 12:33 UTC TC SFTP has some kind of conflict with the latest Openwrt SSH server Dropbear v2022.xx.
It works fine with remote devices (several ms latency).
But it hangs in some situations with local devices (less 1ms latency).
Did you check the same connection and file transfers with another client, FileZilla for example ?
Windows 11 Home x64 Version 22H2 (OS Build 22621.1194)
TC 10.52 x64 / x86
Everything 1.5.0.1335a (x64)
hck
Junior Member
Junior Member
Posts: 2
Joined: 2022-11-26, 11:29 UTC

Re: New SFTP plugin available now

Post by *hck »

Horst.Epp wrote: 2022-11-26, 12:46 UTC Did you check the same connection and file transfers with another client, FileZilla for example ?
FileZilla doesn't support SCP protocol
pscp works fine
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 44410
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Edit:
I have tried your image, and was only able to reproduce it by uploading about 10-20 files >32kByte each. One it was hanging, I attached the dll to a debugger. The function
libssh2_scp_send64()
was constantly returning LIBSSH2_ERROR_EAGAIN, which means that the LibSSH2 dll was waiting for something. So I attached that dll to the debugger too, and indeed it was waiting for a reply from the server after sending the SCP start command. I cannot find any bug in the LibSSH2 library, the server just isn't responding. :(
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 12643
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: New SFTP plugin available now

Post by *Hacker »

Using v3.04, I can't get authentication using both password and password-protected keyfile to work.
User password: abc
Private key password: def

Based on the instructions in the connection config dialog, I set the password field as:

Code: Select all

"def","abc"
When I try to log in, I get this error from the SFTP plugin:

Code: Select all

Error: Authentication by password failed!
This is the log of the SFTP server:

Code: Select all

[Information] Session 18: Started on connection from 192.168.1.2:11655.
[Information] Session 18: Authentication for 'hacker' succeeded partially.
[Error] Error occurred in custom event handler: System.InvalidOperationException: The user has already supplied both the password and public key during this authentication session.
   at srzqn.qojzb.jdmui()
   at srzqn.qojzb.lqsnv(Object p0)
   at srzqn.tggfr.oieuc(Object p0, qojzb p1)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at srzqn.ysfat.iwlpf(cornw p0, String p1, String p2, pmeek p3, Boolean& p4)
[Information] Session 18: Closed connection from 192.168.1.2:11655.
[Information] Session 18: Connection close requested.
WinSCP connects absolutely fine, this is the log from the SFTP server when using WinSCP:

Code: Select all

[Information] Session 19: Started on connection from 192.168.1.2:11784.
[Information] Session 19: Authentication for 'hacker' succeeded partially.
[Information] Session 19: Authentication for 'hacker' succeeded.
[Information] Session 19: Attempting GetItemInfo FSO Read "/"
[Information] Session 19: Attempting OpenDirectory FSO List "/"
What am I doing wrong, please?

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
mduran
Junior Member
Junior Member
Posts: 26
Joined: 2007-02-13, 08:55 UTC

Re: New SFTP plugin available now

Post by *mduran »

Hello,

I don't think having read anything new about the possibility to elevate the session with this plugin (I remember a reply from Christian about libssh2_sftp_init not allowing to do this), but I might have missed something in this long thread, hence my question: is there any recent development in ssh/sftp login via TC which would allow me to 'sudo su root/<any_other_user>'? I need this badly, so any tips are welcome.

Thanks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 44410
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

2Hacker
1. Does it work when you don't save the passwords?
2. How do I need to configure SSHD to require both password and key authentication?

2mduran
SFTP runs as a session over SSH. I don't see how you can run that as root, sorry. Sending su over an interactive session will not elevate the separate SFTP session.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 12643
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: New SFTP plugin available now

Post by *Hacker »

Christian,
Does it work when you don't save the passwords?
I am not 100% sure I tried, but I would guess I did and it didn't work. I had to reinstall the machine with the SFTP server and haven't yet reinstalled it. Will let you know as soon as I reinstall the SFTP server.
How do I need to configure SSHD to require both password and key authentication?
I am sorry, I have no idea, SSHD is for people who know what they are doing, which I am not. I am using the Rebex Buru SFTP Server with a non-commercial licence. There is a 30 day commercial trial available if you'd like to use it for testing. Just create the key pair, and then in the web management interface click Users - Add new user - and select Required for both Password authentication and Public key authentication.

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply