New SFTP plugin available now
Moderators: Hacker, petermad, Stefan2, white
@sgp, it was just requested by TWatcher, see page 5 in this thread. Here the answer from Christian:
mfghisler(Author) wrote:No, sorry - the plugin would have to download the file and then re-upload it, which would be very inefficient and slow. Beta 0.6 now supports to copy files within a server, though, by sending the "cp" command directly as a shell command.
Bankster - Word of the Year 2009
-
- Junior Member
- Posts: 3
- Joined: 2008-09-30, 11:48 UTC
sftp slow?
First of all: GREAT, thx. I've waited a long time for sftp. I used the old one but this one looks better.
But I'm always looking for improvement. sftp is clearly slower than ftp of ftps. Is improvement in sftp speed possible?
But I'm always looking for improvement. sftp is clearly slower than ftp of ftps. Is improvement in sftp speed possible?
Re: sftp slow?
I don't think there is much more speed possible. If you have used the old sftp plugins, you will have noticed that the current solution is much more faster than the old ones.Peter van Heun wrote:First of all: GREAT, thx. I've waited a long time for sftp. I used the old one but this one looks better.
But I'm always looking for improvement. sftp is clearly slower than ftp of ftps. Is improvement in sftp speed possible?
Regards,
CoolWater
I updated my AHK script to launch a putty session out of an active sftp-plugin connection, now also supporting an automatic login if password is stored. I opened a new thread, for details see here: [AHK] launch putty session out of sftp-plugin connection.
TWatcher
TWatcher
-
- Junior Member
- Posts: 3
- Joined: 2008-09-30, 11:48 UTC
Re: sftp slow?
HHmmm.CoolWater wrote:I don't think there is much more speed possible. If you have used the old sftp plugins, you will have noticed that the current solution is much more faster than the old ones.Peter van Heun wrote:First of all: GREAT, thx. I've waited a long time for sftp. I used the old one but this one looks better.
But I'm always looking for improvement. sftp is clearly slower than ftp of ftps. Is improvement in sftp speed possible?
Regards,
CoolWater
With this new plugin I reach a speed of about 50 kbps when sending a pdf. When sending the pdf with Putty through a ftp tunnel in the Commander, the speed gets up to about 70 kbps....
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
-
- Junior Member
- Posts: 3
- Joined: 2008-09-30, 11:48 UTC
Speed
Hello,
regarding the transfer speed I've done a quick test on 100Mbps LAN comparing the old plugin (1.2.58.1) and this new one (beta 8) with the following results:
Upload:
Old 4300kBps, CPU usage 35%
New 315kBps, CPU usage 50%
Download:
Old 315kBps, CPU usage 4%
New 630-790kBps, CPU usage 4%
- tested on transfer of 80MB large file
- tested on notebook with Intel dual core CPU (2GHz) so 50% CPU usage means 100% usage of one core
- in both cases the compression was disabled
- these are average values from approx. 5 tests performed for each operation, the results were pretty much the same during each iteration, only once I got faster download speed with the new plugin rating at approx. 790kbyte/s while all other tests shown speed at 630kbyte/s.
regarding the transfer speed I've done a quick test on 100Mbps LAN comparing the old plugin (1.2.58.1) and this new one (beta 8) with the following results:
Upload:
Old 4300kBps, CPU usage 35%
New 315kBps, CPU usage 50%
Download:
Old 315kBps, CPU usage 4%
New 630-790kBps, CPU usage 4%
- tested on transfer of 80MB large file
- tested on notebook with Intel dual core CPU (2GHz) so 50% CPU usage means 100% usage of one core
- in both cases the compression was disabled
- these are average values from approx. 5 tests performed for each operation, the results were pretty much the same during each iteration, only once I got faster download speed with the new plugin rating at approx. 790kbyte/s while all other tests shown speed at 630kbyte/s.
Thank you for this very important plugin.
Please add SCP support to it.
SCP is the old-fashioned ssh file handling protocol. Some small hardware devices, which supports ssh based on (for example) the Dropbear daemon, supports only this old SCP protocol and not the newer SFTP protocol.
I take a look in your sources of the plugin (Many thanks for the sources!). At a first look it seems not very difficult:
In the header file "sftpfunc.h" theis already part of struct "ConnectSettings".
In the file "sftpfunc.cpp" in LoadServerSettings (line 919 ff) (or so) is needed (... and a corresponding checkbox in the mask (but this is not important)).
I thinks that's all, folk... (because in Sftpconnect (line 271 ff of file "sftpfunc.cpp") the settings for libssh2_sftp_init is already done then. Am I right with this?
Thank you for your support.
JOUBE
Please add SCP support to it.
SCP is the old-fashioned ssh file handling protocol. Some small hardware devices, which supports ssh based on (for example) the Dropbear daemon, supports only this old SCP protocol and not the newer SFTP protocol.
I take a look in your sources of the plugin (Many thanks for the sources!). At a first look it seems not very difficult:
In the header file "sftpfunc.h" the
Code: Select all
BOOL usescp;
In the file "sftpfunc.cpp" in LoadServerSettings (line 919 ff)
Code: Select all
ConnectResults->usescp=GetPrivateProfileInt(gDisplayName,"scp",0,gIniFileName)!=0;
I thinks that's all, folk... (because in Sftpconnect (line 271 ff of file "sftpfunc.cpp") the settings for libssh2_sftp_init is already done then. Am I right with this?
Thank you for your support.
JOUBE
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Unfortunately it's not that easy. Uploading and downloading would be quite easy to add, I would just call libssh2_scp_send_ex and libssh2_scp_recv. However, there is no function for reading the directory listing. I would probably need to open a shell session, and then send the ls -a command and parse it manually...
That's just for preparing scp support, but I haven't had the time yet to write the actual code for all the SCP functions...BOOL usescp;
is already part of struct "ConnectSettings".
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Hello Snake, SFTP is independend from the FTP Menu. SFTPplug is a filesystem plugin,
you can start it over the Network neighborhood within the TotalCommander.
In the properties of the connection you can setup the port, normaly it's Server:Port/dir
Not really shure if it is the same, but you can also send some commands to the server
in the command line of the Total Commander.
mf
you can start it over the Network neighborhood within the TotalCommander.
In the properties of the connection you can setup the port, normaly it's Server:Port/dir
Not really shure if it is the same, but you can also send some commands to the server
in the command line of the Total Commander.
mf
Bankster - Word of the Year 2009
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Yes, my plugin uses the standard SFTP port 22 if no port is specified.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com