Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New SFTP plugin available now
Goto page 1, 2, 3 ... 62, 63, 64  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 28525
Location: Switzerland

PostPosted: Wed Aug 13, 2008 10:02 am    Post subject: New SFTP plugin available now Reply with quote

Because of the stopped development of the old SFTP plugin I have written a new one now, which is using the libssh2 dll for SFTP commands. This dll directly offers SFTP functions for uploading, downloading, renaming etc, so the plugin itself can remain very small and relatively simple. The plugin re-uses some code from my WebDAV plugin. It offers a similar dialog to configure and make the connection.

Update: 1.3
You can download version 1.3 at the following address:
SFTP Plugin 1.3
Sources

Please note that you also need to get the libssh2 dll from the following address:
http://curl.haxx.se/download.html#Win32

For 32 bit:
Please scroll down to the section named Win32 - Generic
and download the following package (or a newer one):
Win32 2000/XP 7.26.0 libcurl SSL Günter Knauf

and for 64 bit:
Win64 - MinGW64
MinGW64 7.26.0 devel SSL SSH Günter Knauf

See the file readme.txt on how to install the plugin.

Supported functions:
- new in 1.30: 64-bit: Load dlls from subdir '64' under dll dir or program dir, same as where TC x64 expects the 64-bit SSL dlls
- new in 1.20: 64-bit: Load dlls from subdir 'x64' under dll dir or program dir
- new in 1.10: Allow to store proxy password in password manager
- new in 1.10: Support for multiple firewalls/proxies
- new in 0.98: Alt+Enter uses "ls -la" if "stat" fails
- new in 0.98: Empty password now possible
- new in 0.98: SCP downloads handles spaces in names
- new in 0.97: Support for asynchronous SCP downloads
- new in 0.97: Support for Putty Agent (Pageant) authentication
- new in 0.95: Support for transfers in background (separate thread) for TC 7.55
- new in 0.94: Unicode support with TC 7.5
- new in 0.94: Support different server encodings
- connect with username/password
- connect with an SSH2 client certificate
- connect over a HTTP proxy supporting the CONNECT command
- connect over a SOCKS4, SOCKS4A or SOCKS5 proxy
- upload, download, rename, delete, create directory
- copy files within a server (Shift+F5 or F5 with different dirs)
- resume upload and download
- change Unix attributes (chmod)
- synchronize dirs with correct timestamps(!)
- properties of file (STAT command) via Alt+Enter
- command line support for any shell commands
- auto-installer added, will warn about libssh2.dll
- let user choose SCP as copy method
- convert text files to/from Unix format during transfers

Authentication using pageant (client cert in Putty format):
You can now store the key in Putty's pageant.exe tool. Pageant can be launched when needed by putting a link in the plugin directory named pageant.lnk pointing to c:\PathToPutty\pageant.exe cert_file_name with the name of the client certificate file as a parameter.

Authentication using a client certificate in OpenSSH format:
1. Start puttygen.exe (part of putty installation)
2. Load your Putty key into it
3. Do NOT click on "Save public key", it creates an
incompatible key! Instead, select the text in the
section "Public key for pasting into OpenSSH...
and press Ctrl+C (=Copy to clipboard)
4. Create a new file with extension .pub (Shift+F4 in
Total Commander) and press Ctrl+V (=Paste)
5. Choose "Export SSH key" from the "Conversions" menu
to save the *.pem file.

Warning:
You may get an access violation if you use a mix of old and new versions of the dlls libeay32.dll, libssl32.dll and libssh2.dll, e.g. when using sftp and the built-in ftps in parallel. You should use the 3 dlls from libcurl together if you need both functions.
_________________
Author of Total Commander
http://www.ghisler.com


Last edited by ghisler(Author) on Sun Jun 03, 2012 8:31 am; edited 20 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CoolWater
Power Member
Power Member


Joined: 27 Mar 2003
Posts: 592

PostPosted: Wed Aug 13, 2008 12:12 pm    Post subject: Reply with quote

Nice work Christian Wink

one little bug I found.. When not choosing a proxy (no radio button is selected by default) you will get the message "Function not supported yet!" when trying to connect.

Thanks for your work!

Regards,
CoolWater
Back to top
View user's profile Send private message
pdavit
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 1483
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space

PostPosted: Wed Aug 13, 2008 1:09 pm    Post subject: Reply with quote

Is there a reason Christian why you don't hard code this?

License implications or size maybe?
_________________
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
CoolWater
Power Member
Power Member


Joined: 27 Mar 2003
Posts: 592

PostPosted: Wed Aug 13, 2008 1:24 pm    Post subject: Reply with quote

pdavit wrote:
Is there a reason Christian why you don't hard code this?

License implications or size maybe?


It's could be implemented in future Smile But only when the plugin is stable enough to directly implement it Smile Image a security hole is found... This always would require a TC update... which is too much work.

Taken from german forum.

Regards,
CoolWater
Back to top
View user's profile Send private message
Clo
Moderator
Moderator


Joined: 02 Dec 2003
Posts: 5737
Location: Bordeaux, France

PostPosted: Wed Aug 13, 2008 2:11 pm    Post subject: 2 questions… OUPS ! Reply with quote

2ghisler(Author)

Smile Good evening,

• Thank you for that new version !
- Please, could you indicate a valid test-server ?

• Do you plan some language-files later ? Currently, there are only German and English in the resources,
I didn't find any LNG in the package… Confused

Mr. Green VG
Claude
Clo
_________________
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Netsphinx
New Member
New Member


Joined: 13 Aug 2008
Posts: 1

PostPosted: Wed Aug 13, 2008 2:15 pm    Post subject: Thank you !!! Reply with quote

I´m using TC for years now (10 or more?), but this is the most amazing feature i allways missed Smile

Thank you !

Erwin
_________________
Licence 4811
Back to top
View user's profile Send private message
Mikefield
Power Member
Power Member


Joined: 26 Feb 2006
Posts: 522
Location: Thießen, Germany SA

PostPosted: Thu Aug 14, 2008 12:09 am    Post subject: Reply with quote

Hello Christian, thanks for your work too.
But it's not possible to initiate a connection. When I start a connection I get an error message "Function not supportet yet!".
Not sure why. The tcftp.log shows only 2 lines:
CONNECT \Test ProdSys 1A
Loading SSH Library

I'm at home in vacation, and have a VPN-Connection to our company, but this should not be the reason for that.
The old sftp plugin is working.

Also I have some suggestions:
1st: Please add a radio button, "ask for password" (Configuration)
2nd: Please add a line with the homedir / target directory (Configuration)
3rd: The sftpplug.ini file is stored in the main directory of TC, I prefer the plugin directory
4th: I miss the pluginst.inf. Smile

mf
_________________
Bankster - Word of the Year 2009
Back to top
View user's profile Send private message
tbeu
Power Member
Power Member


Joined: 04 Jul 2003
Posts: 1149
Location: Germany

PostPosted: Thu Aug 14, 2008 12:28 am    Post subject: Reply with quote

0.1 beta: When pressing F2 the Quick connection directory vanishes and reoccurs after pressing F2 again.
_________________
TC plugins: Autodesk 3ds Max Preview, Blat Mailer, ImageMetaData (JPG Comment/EXIF/IPTC/XMP) , MATLAB MAT-file Viewer, SolidWorks Preview and more
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CoolWater
Power Member
Power Member


Joined: 27 Mar 2003
Posts: 592

PostPosted: Thu Aug 14, 2008 12:40 am    Post subject: Reply with quote

Mikefield wrote:
But it's not possible to initiate a connection. When I start a connection I get an error message "Function not supportet yet!".
Not sure why. The tcftp.log shows only 2 lines:
CONNECT \Test ProdSys 1A
Loading SSH Library

CoolWater wrote:
one little bug I found.. When not choosing a proxy (no radio button is selected by default) you will get the message "Function not supported yet!" when trying to connect.
Back to top
View user's profile Send private message
theosdikaios
Senior Member
Senior Member


Joined: 04 Feb 2006
Posts: 227

PostPosted: Thu Aug 14, 2008 12:53 am    Post subject: Reply with quote

Nice work. Thanks. Very Happy

Quote:
You may get an access violation if you use a mix of old and new versions of the dlls libeay32.dll, libssl32.dll and libssh2.dll, e.g. when using sftp and the built-in ftps in parallel.
Do their any intentions exist to unite FTPS and SFTP in only one plugin? I don't like to see 2 different locations for the same DLLs with the potential risk to have 2 different versions.
_________________
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
Back to top
View user's profile Send private message Send e-mail
gbo
Senior Member
Senior Member


Joined: 31 Mar 2005
Posts: 319
Location: Lausanne (Switzerland)

PostPosted: Thu Aug 14, 2008 1:46 am    Post subject: Reply with quote

Thanks for this plugin!

Just a small remark it is written in the instruction :
This plugin needs the dlls libeay32.dll and libssh2.dll in
the same directory as the plugin.

so I understood I have to put the two files in
[TotalcmdPATH]\plugins\wfx\Sftp_plugin\installstuff\

but it was wrong, in fact these files have to be put in
[TotalcmdPATH]\plugins\wfx\

Hope this will avoid some users to make the same error.

BTW the plugin works in Ubuntu 8.04 with wine.
_________________
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
Back to top
View user's profile Send private message Send e-mail
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2831
Location: Germany

PostPosted: Thu Aug 14, 2008 3:19 am    Post subject: Reply with quote

theosdikaios wrote:
I don't like to see 2 different locations for the same DLLs with the potential risk to have 2 different versions.

You may use one of the following methods meanwhile:

1. Just install both plugins in the same directory
2. create NTFS hardlinks between identical files
_________________
#5767 Personal license
Back to top
View user's profile Send private message
Mikefield
Power Member
Power Member


Joined: 26 Feb 2006
Posts: 522
Location: Thießen, Germany SA

PostPosted: Thu Aug 14, 2008 5:27 am    Post subject: Reply with quote

When I want to connect with username and password, I get an error:
"Authentication by password failed!"
This is on a Linux Red Had Server.

mf
_________________
Bankster - Word of the Year 2009


Last edited by Mikefield on Thu Aug 14, 2008 5:34 am; edited 1 time in total
Back to top
View user's profile Send private message
icfu
Power Member
Power Member


Joined: 10 Sep 2003
Posts: 6062

PostPosted: Thu Aug 14, 2008 5:29 am    Post subject: Reply with quote

Bug: Ctrl+R toggles display of "Quick connection" as long as no connection has been created yet.

Icfu
_________________
This account is for sale
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 28525
Location: Switzerland

PostPosted: Thu Aug 14, 2008 6:53 am    Post subject: Reply with quote

Quote:
one little bug I found.. When not choosing a proxy (no radio button is selected by default) you will get the message "Function not supported yet!" when trying to connect.

Sorry about the bug, I removed the option "use proxy from Internet Explorer" which was the default in the WebDAV plugin, because I cannot get the proxy password in this case. I'm using Windows sockets calls to connect, not the Internet Explorer functions used by the WebDAV plugin, which cannot work with SFTP.

Quote:
Is there a reason Christian why you don't hard code this?

Yes, I can publish the plugin now, and not in 3 months after a looong beta test...

Quote:
Please, could you indicate a valid test-server ?

I'm sorry but there is nothing like anonymous ftp with sftp. Why? SFTP needs a shell account (like telnet), and there is no such thing like anonymous telnet.

Quote:
1st: Please add a radio button, "ask for password" (Configuration)

If you leave the password field blank, you will get the config dialog when connecting, and the cursor is already in the password field! Then you can just enter the password and it will not be saved.

Quote:
2nd: Please add a line with the homedir / target directory (Configuration)

Just set the homedir this way:
server.com:port/homedir

Quote:
3rd: The sftpplug.ini file is stored in the main directory of TC, I prefer the plugin directory

The ini is stored in the directory which you set for wincmd.ini.

Quote:
4th: I miss the pluginst.inf.

This wouldn't work because of the missing ssh and ssl dlls, the plugin would install, but not work. It's therefore better when the user reads the readme file first.

Quote:
Ctrl+R toggles display of "Quick connection" as long as no connection has been created yet.

Ah, thanks for the hint, now I know why I couldn't reproduce this problem when it was initially reported...

Quote:
When I want to connect with username and password, I get an error:
"Authentication by password failed!"
This is on a Linux Red Had Server.


This means that the user name or password is invalid. Make sure you get the upper/lowercase right. I have two servers, one with username/password (ghisler.ch) and one with client certificate (ghisler.com), and both methods definitely work. To my knowledge, both use Centos (Redhat "clone")...

Can you connect e.g. with Putty?
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page 1, 2, 3 ... 62, 63, 64  Next
Page 1 of 64

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group