Library for SFTP support in TC

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Zenox
Junior Member
Junior Member
Posts: 7
Joined: 2003-02-19, 22:01 UTC

Library for SFTP support in TC

Post by *Zenox »

Been searching really hard how to solve the SFTP issue alot of people have, including me. Found an open source SFTP library using the LGPL license with support for SSH1/SSH2 and SFTP. Would it be possible to use this library to get SFTP functionality directly into TC?

Regards and thanks for this wonderful application from an longtime registered user.

/Stefan

Note: For users that want to comment about it - I already know about that buggy SFTP add-on and I'd rather use an extra client to avoid it. The preferred way would be to have SFTP support included by default.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3377
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Sorry this will never happen as switzer exportlaw
forbids to enclude any encryption.
Hoecker sie sind raus!
Zenox
Junior Member
Junior Member
Posts: 7
Joined: 2003-02-19, 22:01 UTC

Post by *Zenox »

Sir_SiLvA wrote:Sorry this will never happen as switzer exportlaw
forbids to enclude any encryption.
Oh that's bad. That means that Ghisler also is not allowed to create an "add-on" that you optionally could download and install?

In that case, maybe make the possibility to create add-ons that adds more protocols to the regular FTP function? That would enable coders like myself to create and release that functionality right inside of TC, but as an add-on that is.
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Sir_SiLvA,
Sorry this will never happen as switzer exportlaw
forbids to enclude any encryption.
That's why FTPS uses an external library.

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.
User avatar
norfie²
Power Member
Power Member
Posts: 1038
Joined: 2006-02-10, 07:27 UTC

Post by *norfie² »

Zenox wrote:That means that Ghisler also is not allowed to create an "add-on" that you optionally could download and install?
Unfortunately you're right.
Zenox wrote:In that case, maybe make the possibility to create add-ons that adds more protocols to the regular FTP function?
IIRC a new FTP plugin interface is planned. But I guess its realization will take some time (years). Nevertheless you can use the file system plugin interface (WFX) for such extensions.

Do you know about the integration of OpenSSL in TCmd? If not then take a look here:
Information on how to use the ssl/tls feature for secure ftp
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's actually a Unix library. What would be needed is a publicly available Windows DLL, as offered by openssl.org for ftp over ssl - but for sftp (ftp over ssh).
Author of Total Commander
https://www.ghisler.com
Zenox
Junior Member
Junior Member
Posts: 7
Joined: 2003-02-19, 22:01 UTC

Post by *Zenox »

Oh hmm, that's true. Saw that someone made a patch for compiling it using win32, but the download link is broken and it's just for library version v0.11. Hopefully someone takes up the challenge to port the newest version it to win32 too.

Would it be possible to use Putty somehow? It's not an DLL though, but I noticed that both WinSCP and FileZilla uses it to achive SFTP functionality (and those are win32 too). The projects are open source though so could watch how they integrate it into their applications and do it the same way in TC. Haven't checked the code, just asking if someone thought about doing it (probably) that way, if possible?

Sorry about asking much about it, I just really want this functionality bad and want to help finding an solution.
Zenox
Junior Member
Junior Member
Posts: 7
Joined: 2003-02-19, 22:01 UTC

Post by *Zenox »

Here is a libssh 0.11 publicly available as a Windows DLL with LGPL license. On this page there is an API, win32 DLL download link and samples on how to use it.
http://www.rkeene.org/projects/libssh-win32/v0.11/

Can that be of any use?
SPeller
Junior Member
Junior Member
Posts: 65
Joined: 2003-09-06, 16:52 UTC
Location: Russia

Post by *SPeller »

It will be great if TC will support this (or any other) library for FTP over SSH.
PS: Sorry for my english.
flo
Junior Member
Junior Member
Posts: 51
Joined: 2007-01-21, 14:57 UTC

Post by *flo »

support ++ :D
gerhard.weinberger
Junior Member
Junior Member
Posts: 22
Joined: 2006-11-02, 15:45 UTC

Post by *gerhard.weinberger »

Support

The WFX Plugin is not maintained anymore. A build in sftp support would be a great improvement!
flo
Junior Member
Junior Member
Posts: 51
Joined: 2007-01-21, 14:57 UTC

Post by *flo »

In the same way than ftps protocol was implemented with other library,is it posible use the library found by Zenox for an implementation of sftp?

I think than sftp protocol support is very important (more and more servers use this protocol today), and an implementation better than the implementation of sftp plugin is required.

I would really like this work were in the TO DO list of ghisler for next releases of total commander!!
User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

flo wrote:I would really like this work were in the TO DO list of ghisler for next releases of total commander!!
It is impossible, because Swiss laws don't allow to implement secure protocols in TC, and there are no free SFTP libraries TC could use, AFAIK (like it does with FTPS).
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The linked SFTP library looks indeed very promising. What worries me, though, is the following text in the documentation: "Note that libssh is still an alpha product, and the API may vary from one version to another. The only guess I can make is that the API won't radically change."

Since I cannot include the DLL, for legal reasons, it would be very problematic if the interfaces suddenly changed...
Author of Total Commander
https://www.ghisler.com
Post Reply