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: 50463
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

My plugin just passes the names unchanged to the SFTP functions, it doesn't now about any name problems on the server. Maybe I can add an option like "escape the following characters" or so...
Author of Total Commander
https://www.ghisler.com
azThazehT
Junior Member
Junior Member
Posts: 2
Joined: 2009-02-26, 11:00 UTC

Post by *azThazehT »

i dont know what winscp does, but as default it copies those files just fine to any kind of systems. maybe finding how it works may help?
i will try to investigate it myself too, but im not sure if i can find the solution :)
Blizz
Junior Member
Junior Member
Posts: 14
Joined: 2004-06-28, 06:45 UTC
Location: Belgium
Contact:

Post by *Blizz »

Love the plugin, especially the fact that it also can connect via certificates, has always been a problem here and forced me to change to a different solution.

However I have a small question, is it possible to set the initial directory? Usually I have to be in a specific directory on the server and now I have to change to it. I am currently using the directory menu (ctrl+d) but this would save me time each login... :)
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Post by *JOUBE »

Blizz wrote:However I have a small question, is it possible to set the initial directory?
Please have a look at the very first text line of SFTP-Server properties:

Code: Select all

...(Server/Pfad oder Server:Port/Pfad)...
;-)

JOUBE
Blizz
Junior Member
Junior Member
Posts: 14
Joined: 2004-06-28, 06:45 UTC
Location: Belgium
Contact:

Post by *Blizz »

Oh boy... feel free to slap me silly!
Can't believe I missed that.
Thanks for taking time to reply though :)
wudile
New Member
New Member
Posts: 1
Joined: 2009-03-26, 05:29 UTC

Post by *wudile »

I can't move file from server to local, now it acts as copy, the file is still in the server after moving.

Does anyone find the same problem?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50463
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

For security reasons, only copying is currently supported, not moving. I don't trust the OpenSSH library enough yet to move files without being 100% certain that the target will be complete.
Author of Total Commander
https://www.ghisler.com
PeterKutak
New Member
New Member
Posts: 1
Joined: 2009-04-02, 15:20 UTC

bug? by coping java class files to ssh server

Post by *PeterKutak »

Hi,

I found problem by coping files from local disk to SSH server by SFTP 0.92Beta

files with file name like ClassName$AnySubClass.class was uploded as ClassName.class (without part after dollar sign)


Many thanks for new SFTP plugin!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50463
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This seems to be a problem of some servers - $xyz is interpreted as an environment variable on Unix-based systems, but this shouldn't happen for remote calls. I don't currently see how my plugin should prevent it.
Author of Total Commander
https://www.ghisler.com
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

Everyone having problem with $ characters, did you try both sftp and scp transfers? ('Use SCP for data transfers' checkbox in connection properties). Does the problem occur in both modes?

There's a known problem with _scp_ and older libssh2 (0.18, the one from cURL package recommended on the first page). The file names are not quoted properly and therefore characters after $ are evaluated by shell as variable. Try to upload e.g. test_$USER.txt and you get test_root.txt or whatever your username is.

This problem is fixed in newer libssh2 version. One is available here:

http://josefsson.org/gnutls4win/libssh2-1.1.zip

(you have to remove "-1" from dll's name).

If you have trouble even in sftp mode, then it would be some other problem.
mag
Junior Member
Junior Member
Posts: 35
Joined: 2008-10-06, 08:35 UTC

direct commands on TC 7.50pb1

Post by *mag »

Hello,

I just tested the plugin in the current beta of TC 7.50 (pb1).
Almost everything seems to be working fine except for one little thing. :-(

With TC 7.50 I'm unable to use commands directly typed into the TC command line, anything I type there (when having some SFTP connection open) is just ignored.

With TC 7.0 it was possible to change directories, files permissions etc... in the active SFTP connection this way which I used quite frequently.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50463
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, no problem here so far, I tried e.g.
df
or
ps

and the result is shown in the log window.

What commands did you try? And what Windows version do you use?
Author of Total Commander
https://www.ghisler.com
mag
Junior Member
Junior Member
Posts: 35
Joined: 2008-10-06, 08:35 UTC

Post by *mag »

Yes, the ones you mention work here as well as some another I just tried.

The most important which doesn't work here is 'cd somepath' which is pretty useful for me.
And as far as I remember there was some another which I just can't recall at the moment.

Tested at Win XP Pro SP3 en-US connected to RHEL 5.3 Linux and HP-UX 11i v2 servers.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50463
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can confirm that the cd command doesn't work, thanks! When I find the reason, I will fix TC 7.5 and/or then plugin.
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Post by *JOUBE »

There is a difference between your FS-Plugins SFTP and Webdav with the new breadcrump feature in Tc7.50B1. If opening the Webdav-Plugin within the breadcrump menues, the plugin automaticly connects with the selected server. This does not happen with the SFTP-Plugin. Why?

JOUBE
Post Reply