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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The dialog says "Error: Authentication by password failed"
This means that the plugin tried to login with user name and password, and NOT with a certificate.

There is a description in the first post of this thread how to convert a key from Putty format to OpenSSH PUB/PEM 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.
Author of Total Commander
https://www.ghisler.com
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Good evening, Christian.

The first post of this thread still announces v0.98 of your SFTP plugin.
Your filesystem plugin page offers v1.0 final of your SFTP plugin.
The current version of the required (lib)curl files has moved from v7.20.1 to v7.21.2 by now.
Is there a slight chance that you will find the time of updating the details of your first post perhaps? This would be nice.

Kind regards,
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Done, thanks! Btw, v1.0 final and v.098 are almost identical.
Author of Total Commander
https://www.ghisler.com
Koreus
Junior Member
Junior Member
Posts: 3
Joined: 2003-11-14, 21:24 UTC
Contact:

Post by *Koreus »

Hi,

The plugin works great except a performance issue with upload.
I can upload at 10MB/s with scp on a linux box but I can upload only at 2 MB/s with this plugin.

FYI, I had also a performance issue with WinSCP where my upload was limited at 500 Ko/s but with the latest version (4.3.0beta), I can upload at 8 MB/s and more
How they fixed it from the history page : "Increased socket internal buffer size for SSH. It should improve transfer speed. Thanks to ultramage. 615"

I have tested with SCP option ON or OFF in the plugin. It is worst without SCP.

Hope you can fix it :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately that's an OpenSSH issue, you cannot change the upload buffer size from the outside (my plugin).
Author of Total Commander
https://www.ghisler.com
olesio
Junior Member
Junior Member
Posts: 54
Joined: 2009-01-22, 15:29 UTC
Location: Poland

Post by *olesio »

Nice to see 1.0 version, but I have question and suggestion at once, is it
possible to fix this plugin to show correct transfer in kb/s and elapsed time,
because I have VPS at logout.pl and when upload big albmost 500 MB single
rar archive - plugin shows transfer faster than my connection (I have 1,5
MegaBits and it shows even 900 kb/s) and time to finish upload is not true.
Is it server fault or it can be fixed somehow? WinSCP show it right - but I
prefer to use TotalCommander ofcourse. Thats all. Sorry for my bad english.
Best regards: olesio
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The speed isn't calculated by the plugin, but by Total Commander itself, simply by dividing the number of bytes sent by the time it took. I really wonder how you get such a high speed, here the plugin is quite slow...
Author of Total Commander
https://www.ghisler.com
User avatar
AlleyKat
Senior Member
Senior Member
Posts: 203
Joined: 2003-06-15, 10:51 UTC
Location: for personal info, see wiki
Contact:

Post by *AlleyKat »

I've run into a slight issue with this plugin - I've an idea it might be the SSH-lib, but might as well ask - I use thís as portable (using PortableApps [irrelevant I guess] and the tc2usb tool), and use it to connect to my server using a public/private keypair. On my home system it works very well. BUT! On the portable system (USB 2GB Kingston drive with PA, TC and a bunch of other apps), I cannot use the public/private key pair unless I correct the path to the keys whenever I'm on a system where the drive is different from the last one - and the key pair does not work without a drive letter specified in the 'setup' for the SFTP.

Is there a way around this? A 'commander drive' parameter/environment var to get around this, or a way to make it so?

Slightly offtopic (and then again...) I got the same issue for the toolbar buttons and the editor in TC - as for the buttons, I fix this using '%COMMANDER_PATH%\..\..\..\(path_to_app)\(exe_file)' but it would be more elegant just having a param/env_var for the TC drive itself - does a such exist?


EDIT
Ok, sorry, all my bad - looking up the Wiki page on 'navigation' again, I see the pseudo environment var %COMMANDER_DRIVE% already exist - and testing, I found this to work, in both the toolbar, for Operation > Editors and for the SFTP plugin.

TC rules once again - and thanks for both a great program and this essential plugin.
Translate your favorite Mozilla Extension ~ Your Language Is Important Too.
#tcmd on irc.freenode.net - the place to idle
constantin
Junior Member
Junior Member
Posts: 5
Joined: 2006-11-01, 12:14 UTC
Location: Russia

Post by *constantin »

I use this plugin for the connection with my Kindle. I made a toolbar button for opening Kindle's library and I want to create another button for updating library. I need to send some command to my Kindle. I can do it via TC's command line but I don't know how to do it via toolbar button.
And tnx for great work!
constantin
Junior Member
Junior Member
Posts: 5
Joined: 2006-11-01, 12:14 UTC
Location: Russia

Post by *constantin »

And I found an annoying bug. Copying SEVERAL files by F5 to my Kindle doesn't work for me. I get an error for each file (all files truncated at 16Kb) but if I copy only one file - all OK. Also I can't copy a directory with any file to Kindle. But any copying from Kindle works as expected
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can you post a log, please? Just enable FTP logging in Configuration - Options - FTP, this will log also the plugins which support it.
Author of Total Commander
https://www.ghisler.com
constantin
Junior Member
Junior Member
Posts: 5
Joined: 2006-11-01, 12:14 UTC
Location: Russia

Post by *constantin »

I doubt about log. I see different errors while copying the same directory. From time to time I receive a various set of the copied files.
The small piece of the LOG

Get directory: \mnt\us\documents\1
drwxr-xr-x 2 root root 8192 Jan 7 21:13 .
drwxr-xr-x 3 root root 8192 Jan 7 20:08 ..
Get directory: \mnt\us\documents\1\
drwxr-xr-x 2 root root 8192 Jan 7 21:13 .
drwxr-xr-x 3 root root 8192 Jan 7 20:08 ..
Create directory: \mnt\us\documents\1\SAVE
Get directory: \mnt\us\documents\1\SAVE
drwxr-xr-x 2 root root 8192 Jan 7 21:14 .
drwxr-xr-x 3 root root 8192 Jan 7 21:14 ..
Create directory: \mnt\us\documents\1\SAVE\1
Get directory: \mnt\us\documents\1\SAVE\1
drwxr-xr-x 2 root root 8192 Jan 7 21:14 .
drwxr-xr-x 3 root root 8192 Jan 7 21:14 ..
Upload file: /mnt/us/documents/1/SAVE/1/DrPoDecorRu.ttf
Create directory: \mnt\us\documents\1\SAVE\3
Directory not created: Timeout waiting for status message
Get directory: \mnt\us\documents\1\SAVE\3
Directory not opened: Failed opening remote file
Upload file: /mnt/us/documents/1/SAVE/3/DemoBrowser.dpr
Get directory: \mnt\us\documents\1
drwxr-xr-x 3 root root 8192 Jan 7 21:14 .
drwxr-xr-x 3 root root 8192 Jan 7 20:08 ..
drwxr-xr-x 3 root root 8192 Jan 7 21:14 SAVE
Get directory: \mnt\us\documents\1\SAVE
drwxr-xr-x 3 root root 8192 Jan 7 21:14 .
drwxr-xr-x 3 root root 8192 Jan 7 21:14 ..
drwxr-xr-x 2 root root 8192 Jan 7 21:14 1
Get directory: \mnt\us\documents\1\SAVE\1
drwxr-xr-x 2 root root 8192 Jan 7 21:14 .
drwxr-xr-x 3 root root 8192 Jan 7 21:14 ..
-rwxr-xr-x 1 root root 224508 Jun 21 2005 DrPoDecorRu.ttf
-rwxr-xr-x 1 root root 92012 Jul 17 2000 festus.TTF
-rwxr-xr-x 1 root root 41164 Jun 21 2005 Pushkin.ttf
-rwxr-xr-x 1 root root 32768 Jan 7 21:14 shutterstock_10535440_xakep.lv.eps
constantin
Junior Member
Junior Member
Posts: 5
Joined: 2006-11-01, 12:14 UTC
Location: Russia

Post by *constantin »

By the current moment I have solved a problem of copying of files. I have replaced a plug-in with sftp4tc (http://developer.berlios.de/)
User avatar
AlleyKat
Senior Member
Senior Member
Posts: 203
Joined: 2003-06-15, 10:51 UTC
Location: for personal info, see wiki
Contact:

Post by *AlleyKat »

ghisler(Author) wrote:The speed isn't calculated by the plugin, but by Total Commander itself, simply by dividing the number of bytes sent by the time it took. I really wonder how you get such a high speed, here the plugin is quite slow...
Hmm I kinda have the same thing - I guess?

ATM I'm on a very slow connection (2-3 mbit or slower) and am doing a backup file download from my server. It's a single .tar.gz 1,1 GB file, and when I started it (about 3 hours ago now) the copy dialog stated (approximate values) "2400 kbytes/s, 8 minutes" - at present, it says "2100 kbytes/s, 4 minutes" and has reached 55%.

I'm not sure which factors could be in play, but this is over SSH using a key pair, which otherwise is working great - like Pericius I had a little trouble with the keys at first, but found the same information in the readme and following that got it working just fine.

That calculation of speed/time is (to put it mildly) somewhat off. But maybe using keys has something to do with it? I also notice that the (win 7 aero theme) progress bar 'flashing' - the brightening running along the bar in the download dialog box - crawls along very slowly, compared to when I normally copy files locally or via FTP - this could be related?

Not that I really care, as long as it works I'm a very happy camper, but if it can help resolve some issue...
Translate your favorite Mozilla Extension ~ Your Language Is Important Too.
#tcmd on irc.freenode.net - the place to idle
dilemma
New Member
New Member
Posts: 1
Joined: 2011-01-16, 11:51 UTC

Post by *dilemma »

Maybe it is already answered in this thread, but I didn't find it:

How I can prevent the new SFTP plugin (2010/06/29: SFTP plugin 1.0 final) to make a

Get directory on \

automatically ?
Post Reply