New SFTP plugin available now

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

My last build is from April 2011, and I currently don't have the time to recompile them - were there any problematic security problems fixed since then?
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 »

There's actually one in GSSAPI, fixed in June (7.21.7):
http://curl.haxx.se/docs/adv_20110623.html or http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-2192

But I don't think there's any use for it in Your plugin as it's related to HTTP authentication only.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

OK, I have put them online now. They include both the OpenSSL and OpenSSH files. For now, you need to put them in the Total Commander directory.

https://plugins.ghisler.com/addons/openssl+ssh64.zip
Last edited by ghisler(Author) on 2011-09-22, 15:20 UTC, edited 1 time in total.
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 »

Working fine, thanks a lot.
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

Is there a way to safe a SFTP connection?
I dragged and dropped the SFTP icon (which shows up when you're in the network neighbourhood), but that only gets me to:
\\\Secure FTP\
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You mean in the button bar? Just drag the connection itself to the bar.
Author of Total Commander
https://www.ghisler.com
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

Sorry, What I meant is the following.


When I have the plug-in installed, it looks like this:

[1]
Image: http://imageshack.us/f/24/60173011.jpg

When double click the icon, another 2 icons open in the file-pane, one beeing a grey "pad-lock" icon if I double click that a dialog-box opens in which I can enter all the server info. If all the input is correct I can connect to my server like shown below.

[2]
Image: http://imageshack.us/f/9/75170728.jpg

If I drag the icon of [1] to the button bar, I get something like this:

[3]
Image: http://imageshack.us/f/38/54535566.jpg

The only other connection icon I can drag tot button bar is the green pad-lock icon:
[4]
Image: http://img593.imageshack.us/img593/7066/52558571.jpg

But it looks like this on the button bar, far-right icon next to the SFTP icon:
(It also gives me the following error, see following image)
[5]
Image: http://imageshack.us/photo/my-images/825/48881935.jpg

Is there a better way to safe/bookmark a connection?
If I drag the icon at [3] I get to the file-pane shown at [1].
If I do that I have to input the connection info (host, password,...) all over.
Sob
Power Member
Power Member
Posts: 941
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

dragonetti wrote:Is there a better way to safe/bookmark a connection?
While you're in \\Secure FTP\, press F7. It will offer you to create new folder and that will be your bookmark.
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

Sob wrote:
dragonetti wrote:Is there a better way to safe/bookmark a connection?
While you're in \\Secure FTP\, press F7. It will offer you to create new folder and that will be your bookmark.
THAT WORKED!

I did that the first the time because of the text link stating "_F7=new connection". So pressed F7 and the "New folder" dialog popped up, I thought it wanted to make a plain folder, so I closed the new folder-dialog box....... but the new folder dialogbox is the connection!

Thanks Sob!

EDIT:
In the SFTP plugin if I use the command: cm_CopyFullNamesToClip
the full root from total commander gets copied into memory.

This means if I created a connection called: "vps - root"
And I want to copy the path to "filename.sh"

It get's copied to:
\\\Secure FTP\vps - root\root\scripttest\filename.sh
The bold part isn't needed, is it possible to exlude te first 2 parts (bold parts)?
User avatar
karlchen
Power Member
Power Member
Posts: 4603
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, dragonetti.
It get's copied to:
\\\Secure FTP\vps - root\root\scripttest\filename.sh
The bold part isn't needed, is it possible to exlude te first 2 parts (bold parts)?
There is no way of achieving your goal by using Total Commander internal commands only.
Yet, there are different ways of achieving your goal by using scripting tools like AHK.
Please, have a look at this thread where one of the goals is exactly what you want to achieve, stripping parts of the full pathname. Yet, beware, the target platform in that thread is not so much Windows, but Total Commander on Linux with Wine. In order to use the given examples on Windows you may have to modify the quoted commands a bit.
Thread copy path to clipboard - wine

Depending on how flexible your command needs to be the following utilities will be helpful:
+ Lefteous's Lst2Clip
+ TCMC (send mutliple commands to T.C.
+ UnxUtils

Here is the command which can be found in the linked thread as well and which I use in order to strip the unneeded prefix from the SFTP pathnames:
  1. %COMMANDER_PATH%\..\TC_Addons\TCMC.exe 50 CMcm_CopyFullNamesToClip EMem_ConvertSSHToSlash
    This is the button that uses TCMC in order to tell T.C. to copy the full pathname to the clippboard and that next launches the command to transform the clipboard content
  2. [em_ConvertSSHToSlash]
    button=WCMICONS.DLL,59
    cmd=cmd.exe
    param=/c pclip| sed -e "s#\\#/#g" -e "s#///Secure FTP/.\{8\}[^/]*/#/#g" | gclip
    menu=sshpath
    path=%COMMANDER_PATH%\..\TC_Addons
    This user defined command uses the UnxUtils to strip the unneeded prefix of the SFTP full pathname and push the resulting pathname back into the clipboard.
  3. Note: the pathname will be in Linux notation, i.e. it will use forward slash instead of backslash in order to separate path names.
HTH,
Karl
uyuni
Junior Member
Junior Member
Posts: 7
Joined: 2008-09-24, 15:39 UTC

SFTP: softlinks?

Post by *uyuni »

SFTP plugin is working OK but no softlinks are shown. Is there a configuration somewhere to make them visible?

When I press "cd softlink" the view goes to the correct directory.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

They should appear among the files, not the folders. A double click should still follow the link, though.
Author of Total Commander
https://www.ghisler.com
ilin
New Member
New Member
Posts: 1
Joined: 2011-10-06, 16:03 UTC

Post by *ilin »

v7.56a SYNCHRONIZE DIRS does wrong text file comparing with unix server.

sftpplug.ini unixlinebreaks=1
Unlike same operation via FTP, "Synchronize directories" dialog box does not CR/LF correction for sizes of text files.
uyuni
Junior Member
Junior Member
Posts: 7
Joined: 2008-09-24, 15:39 UTC

Softlinks are displayed as files

Post by *uyuni »

Softlinks are displayed as files, that is correct.
dragonetti
Junior Member
Junior Member
Posts: 33
Joined: 2007-07-09, 21:03 UTC

Post by *dragonetti »

@karlchen => THANKS!!!


I have another question concerning keys.
I have it working with putty and the terminal window in putty (key generated with putty and public key used in the "authorized_keys" file on my VPS).

EDIT

I TOTALLY forgot to include the port in the host adres part, it works now!!! (pheew)
Post Reply