New SFTP plugin available now

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
Uruloki
Junior Member
Junior Member
Posts: 9
Joined: 2009-05-27, 18:21 UTC

Post by *Uruloki »

ghisler(Author) wrote:Currently I don't have the time to support server to server transfers, but it would be possible to do it without a local temporary file - the OpenSSL functions would allow to receive a block from one server and immediately send it to the other. But things like resume would be more difficult to add.
I see. I saw your previous reply tho (thx to Mikefield):
No, sorry - the plugin would have to download the file and then re-upload it, which would be very inefficient and slow.
- i (and i guess others) seriously don't care if it's slow :) If we need to move large amount of files we'll just use scp or rsync or whatever.

I mean, if it's easy to do (compared to direct copying) that would be GREAT :)
Uruloki
Junior Member
Junior Member
Posts: 9
Joined: 2009-05-27, 18:21 UTC

Post by *Uruloki »

Mikefield wrote: ADD: Found the Answer here, it's depending on the SSHD. Ver. 4.4p1 is still working, but with 5.0 or above it doesn't.
Thanks a lot, i'll take a look at what our new servers are running.
Uruloki
Junior Member
Junior Member
Posts: 9
Joined: 2009-05-27, 18:21 UTC

Post by *Uruloki »

CoolWater wrote:Maybe another solution if you have root access (just for installing sshfs) to the server: Use sshfs to mount a sftp connection to a given mountpoint (on server side). Then you can use the plugin to copy/move to the mountpoint as if it were a local path on the server.

Drawback: No progress dialog/bar for copy/move actions...

HTH
CoolWater
Nah, don't have a root access and systems guys won't bother to do this just to please me :)
kaliki
Junior Member
Junior Member
Posts: 2
Joined: 2009-05-31, 14:43 UTC
Location: Moscow

SSH aggent support.

Post by *kaliki »

I am using TC for a about 12 years. And a registered user for about 6 years. Thanks for a great file manager. Lack of sftp support (SFTP4TC too bugged) was always reason for using winscp. Now i coud use TC for that. Thanks alot for great plugin!
Now feature request:
Coud you add ssh agent authentication support. Pagent for example.
Last edited by kaliki on 2009-05-31, 14:58 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Coud you add ssh agent authentication support. Pagent for example.
Unfortunately the Pageant format isn't compatible with OpenSSH, so it's not possible, sorry. With TC 7.5 you can now use my password manager for the site password or the private key passphrase.
Author of Total Commander
https://www.ghisler.com
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

I have additional suggestions to the plugin, before it reach the 1.0.1 Version - means to leave the beta status. :)

1st: It's not possible to duplicate connections. So it would be easier to copy and edit the name
and the IP-Address afterwards. F5 would be fine.

2nd: Handling. When the Connect to.. line is active (enter IP adress and port) and press tab key -
then the cusor jumps to the Auto/IPv4/Ipv6 above instead to the next line below, to the Username.
This is very annoying. So I suggest to jump from Connect to.. direct to Username with one tab.

mf
Bankster - Word of the Year 2009
xsash
Junior Member
Junior Member
Posts: 2
Joined: 2009-06-06, 16:03 UTC

Post by *xsash »

Hello All
help me please.
When I connet to server the progres bar shows from 0% to 20% again and again in the loop.

Public and private keys are'nt used because putty works without new generated keys.
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Hello xsash, welcome aboard!
Did you setup the connection string correct? It should be www.xxx.yyy.zzz:22 with the :Port on the end.

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

0..20 % is the progress when waiting for the connect() call to succeed. Apparently you don't even reach the server. If putty works, you either use different settings (like missing port), or a firewall is blocking TC from reaching the server.
Author of Total Commander
https://www.ghisler.com
xsash
Junior Member
Junior Member
Posts: 2
Joined: 2009-06-06, 16:03 UTC

Post by *xsash »

ghisler(Author) wrote: a firewall is blocking TC from reaching the server.
:oops:
Comodo firewall blocked port 22. Usually it asked me before blocking ports but now seems takes the initiative.

Thanks for helpful hint!
margolis22
Junior Member
Junior Member
Posts: 59
Joined: 2006-07-06, 23:15 UTC

SFTP from within an SFTP

Post by *margolis22 »

I SFTP into my AIX servers all day long so I can work with NetBackup. Our client has restricted direct access to their environment. The only way I can access the environment is to putty into environment A from there I then need to SSH into their environment. For putty this works fine but I would like to have the same ability to SFTP into Environment A then SFTP into the clients environment, is this possible, if not, could this be a possibility in the future?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This has been discussed further up in this thread. Unfortunately I don't currently see a way on how to implement this with OpenSSH (used by my plugin for SFTP transfers).
Author of Total Commander
https://www.ghisler.com
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

I'm lost...

Post by *MarkFilipak »

In the past I used FTP with TotalCommander, but to access my server I apparently must use SSH+FTP. I currently use Bitvise Tunnelier but I miss TotalCommander's power. But I have to confess that I need help (...I feel so stupid).
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.
DLL-confusion: Huh? "both functions"? "sftp" - "built-in ftps"? What's the difference? "libeay32.dll, libssl32.dll and libssh2.dll" Huh? Which do I need - I have so many different versions of these, and I've never been able to get anything to work.
Please note that you also need to get the libssh2 dll from the following address: http://curl.haxx.se/download.html
Just libssh2.dll? - see dll-confusion above. I searched the download page for "libssh2" and for "ssh" and couldn't find it.
Well, I see this: Win32 OpenSSL v0.9.8k Light, a 1-MB installer at Shining Light (http://www.shininglightpro.com/products/Win32OpenSSL.html). Is that what I want (yet another version!)? I installed it - do I need to have it installed or do I just need one (or more) of the .dlls? In the installation directory I see these: libeay32.dll, libssl32.dll, and ssleay32.dll. None of them are named "libssh2.dll" - I assume that's SSH.
I'm totally lost. Any help appreciated greatly! Meanwhile, I'm giving up.

AHA! I got a brainstorm and Googled "what is the difference between sftp and ftps?" Here: http://www.rebex.net/secure-ftp.net/ is a good but terse explanation. Seems that FTPS is standard FTP using the standard port 21 using SSL transport, whereas SFTP is SSH File Transfer Protocol, is unrelated to SFTP, and uses port 22. Now that makes sense.

So I assume that FTPS needs these: libeay32.dll, libssl32.dll, and ssleay32.dll.
But SFTP needs only this: libssh2.dll.

Am I correct (or more confused)?

If I'm correct, then I assume that to replace Bitvise Tunnelier with TotalCommander I only need libssh2.dll. Right?

Where can I obtain libssh2.dll?

== update ==

I downloaded this: sftpplug094beta.zip (Christian Ghisler)

and this: curl-7.19.5-ssl-sspi-zlib-static-bin-w32.zip (Günter Knauf)

I double-clicked sftpplug094beta.zip and installed it. It installed itself into
d:\totalcmd\plugins\wfx\sftpplug\sftpplug.wfx

I then put these:
d:\totalcmd\plugins\wfx\sftpplug\libcurl.dll
d:\totalcmd\plugins\wfx\sftpplug\libeay32.dll
d:\totalcmd\plugins\wfx\sftpplug\libssl32.dll
d:\totalcmd\plugins\wfx\sftpplug\curl.exe
in the same directory.

I configured the "FTP: connection details" dialog as follows:
Host name(:Port): 192.168.0.100:22 // my server
SSL/TLS not checked.
User name: root
Password: <my password>

It didn't work.
I tried checking SSL/TLS - no improvement.
I tried passive mode - no improvement.
I tried both of the above - no improvement.

I didn't try firewall proxy - Bitvise Tunnelier works, so TotalCommand should too, eh?

Giving up. License #37627
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

Version 0.94 doesn't seem to preserve directory time when the corresponding option is set in wincmd.ini - could directory time be preserved in a future version? Thanks.
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

2MarkFilipak you made an lot of confusions, but you didn't catch the main:
The SFTPplug is a filesystem plugin and can unfortunately not used with the build in FTP/FTPS.
You can reach the SFTP plugin over the network neighborhoud within the TC.

mf
Bankster - Word of the Year 2009
Post Reply