Bug in SFTP plugin(s)? Does not use SCP?

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
User avatar
dy/dx
Junior Member
Junior Member
Posts: 92
Joined: 2005-03-06, 22:32 UTC
Contact:

Bug in SFTP plugin(s)? Does not use SCP?

Post by *dy/dx »

Hi,

I use the "Secure FTP" plugin from Christian as well as "sftp4tc".

Now I have an SSH server which has SFTP subsystem turned off (explicitely) do I need to go via SCP.

The first one, sftp2tc does not even have an option for SFTP vs. SCP so apparently it attempts to connect via SFTP ... and fails.

The second one has the option "[x] Use SCP for data transfers (faster!)" which I explicitely ticked. However, when I connect, I still get: "Error: Could not initialize SFTP session! Unable to request SFTP subsystem!". Of course, it does not exist but I also told it to not use it!

So currently I need to use WinSCP which works perfectly with SCP but is very cumbersome because I do everything else in TC.

Is this a bug in the plugin(s)? Is there hope that this could get fixed?

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

Post by *ghisler(Author) »

Sorry, TC still needs the SFTP subsystem to get the directory listings! SCP is only used to download and upload files. There is no command in SCP to get directory listings. TC would have to open a terminal and send ls -l or so, but this can have language-specific month names and system-specific output format, so I'm not doing this.
Author of Total Commander
https://www.ghisler.com
bebbo
Junior Member
Junior Member
Posts: 53
Joined: 2009-06-24, 08:22 UTC

Post by *bebbo »

There is no need for SCP if you use SFTP4TC.

Go to the "SFTP4TC Options" and enter the path to the sftp subsystem at "special SFTP command".

On centos this is "/usr/libexec/openssh/sftp-server" but you can also use an own executable in your home folder.

That's it.

Bebbo
User avatar
Dalai
Power Member
Power Member
Posts: 9961
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

ghisler(Author) wrote:TC would have to open a terminal and send ls -l or so, but this can have language-specific month names and system-specific output format, so I'm not doing this.
Can't you do something like

Code: Select all

LANG=C ls -l
to avoid any locale-specific output?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
dy/dx
Junior Member
Junior Member
Posts: 92
Joined: 2005-03-06, 22:32 UTC
Contact:

Post by *dy/dx »

Go to the "SFTP4TC Options" and enter the path to the sftp subsystem at "special SFTP command".

On centos this is "/usr/libexec/openssh/sftp-server" but you can also use an own executable in your home folder.
Unfortunately the complete SFTP subsystem is disabled/removed. There is no sftp-server command on the server.

I also have various embedded devices. For all of them, WinSCP works perfectly but no single Total Commander plugin. Very frustrating ...
Can't you do something like

Code: Select all

LANG=C ls -l	
to avoid any locale-specific output?
This output might still be system specific, there is no general rule. SCP is intended for only copying.

In my opinion, it's still frustrating because software like WinSCP can do it too and there are just so many systems where SFTP is no option :-(
bebbo
Junior Member
Junior Member
Posts: 53
Joined: 2009-06-24, 08:22 UTC

Post by *bebbo »

dy/dx wrote:
Go to the "SFTP4TC Options" and enter the path to the sftp subsystem at "special SFTP command".

On centos this is "/usr/libexec/openssh/sftp-server" but you can also use an own executable in your home folder.
Unfortunately the complete SFTP subsystem is disabled/removed. There is no sftp-server command on the server.
Put a copy of the sftp-server binary in your users bin folder and configure "/home/dydx/bin/sftp-server".

For android sftp-server binary have a look here: https://code.google.com/p/droidsshd/issues/detail?id=1#c6

Bebbo
Post Reply