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
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

MarkFilipak wrote: Thanks, Mike, but of course I have done this.
No, you didn't. Did you get following window (just in english)
http://www.bilder-upload.eu/show.php?file=8hLRgwOaY4SyyQY.png
When you did it correct, then you will find also the sftpplug.ini in your TC install directory.
Here are the ini with your connection:

Code: Select all

[proxy]
proxyserver=
proxyuser=
proxypassword=
[MarkFilipak]
server=127.0.0.1:22
user=MarkFilipak
password=058013048082049188051032091
FTP connection details wrote:Session: Core-FTP-Server
Host name[Port]: 127.0.0.1:22
SSL/TLS // not checked
User name: <my login name>
Password: <my login password>
Remote dir: /
Local dir: F:\
Send Commands: // this is blank
Server type: Auto detect
Use firewall (proxy server) // not checked
Use passive mode... // not checked
Send command to keep connection alive: // not checked
That's still wrong while it's still ftp not sftp dialog!

1st: Choose Network Neighborhood within TC
http://www.bilder-upload.eu/show.php?file=80VPQj6YpJ2x0zb.png
2nd: Choose Secure FTP
3rd: Press F7 Function key on your keyboard.
4th: Enter your preferred name for the connection, then OK
5th: Fill out your connection Details, then OK
http://www.bilder-upload.eu/show.php?file=8hLRgwOaY4SyyQY.png
6th: Execute the new connection
http://www.bilder-upload.eu/show.php?file=W7033A8KyI004OL.png

mf
Bankster - Word of the Year 2009
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

Post by *MarkFilipak »

Mikefield wrote:
MarkFilipak wrote: Thanks, Mike, but of course I have done this.
No, you didn't. Did you get following window (just in english)
http://www.bilder-upload.eu/show.php?file=8hLRgwOaY4SyyQY.png
I have never seen a "Connect by SFTP" dialog. I just noticed that you wrote F7. F7 in my TotalCommander creates a new folder.

OK, I just opened Network Neighborhood. I see _F7=new connection.txt, however, F7 still creates a new folder.

I tried to view _F7=new connection.txt using F3 and got an error:
Error downloading file! wrote:E:\Temp\_tc\_F7=new connection.txt.
Then, just for the hell of it, I double-clicked _F7=new connection.txt and - voila! - the "Connect by SFTP" dialog opened! - who would have guessed!

None of the above is in either Christian's OP, or in the sftp plugin readme.txt file.

(I would tell you what I put into the "Connect by SFTP" dialog, but it will not open a second time...)

Now I have two _F7=new connection.txt files! One is zero bytes and the other is 107 bytes.

When I double-click the _F7=new connection.txt that is 107 bytes and supply the password, in the right pane title bar I see "\\\Secure FTP\_F7=new connection.txt\*.*" and in the right pane I see two directories: [..] and ~.

In the status window to the right of the "Disconect" button I see this: "Directory not opened: Failed opening remote file"

I now have this INI file: d:\totalcmd\sftpplug.ini
In it are these lines:
[_F7=new connection.txt]
server=127.0.0.1:22
user=markfilipak
codepage=0
fingerprint=26 55 CF 1C 1C 66 04 72 2D 79 13 76 20 34 CC 3C
utf8=0
unixlinebreaks=0
[proxy]
proxyserver=
proxyuser=
Hi Christian! Delighted customer since 1999. License #37627
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

Post by *MarkFilipak »

I can't believe it! I got it to work.

I edited sftpplug.ini and added a new section for my ClarkConnect server. Then I reopened Network Neighborhood and - voila! - there was a file: ClarkConnect server.txt. I double-clicked that and supplied my password and got connected.

It still doesn't work with the Core SFTP server, but I don't care about that.

Ciao -- Mark Filipak
Hi Christian! Delighted customer since 1999. License #37627
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

Post by *MarkFilipak »

I got it to work with Core SFTP server too.

Question: Is there a way to store passwords?----never mind. I found it. Once you have successfully connected, right-click "properties" works. The password should be settable in the original "Connect by SFTP" dialog.

I understand that there was an old sftp plugin. I think it is assumed that anyone using this new plugin had used the old plugin and therefore didn't need instructions. I never used the old plugin.
Hi Christian! Delighted customer since 1999. License #37627
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

ALT + Enter opens the properties too.

mf
Bankster - Word of the Year 2009
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

Post by *MarkFilipak »

Thanks Mike. Do you have any documentation for sftpplug.ini? I'm trying to get TC-SFTP to open the remote directory here: /var/www/html/.
Hi Christian! Delighted customer since 1999. License #37627
User avatar
MarkFilipak
Member
Member
Posts: 164
Joined: 2008-09-28, 01:00 UTC
Location: Mansfield, Ohio

SFTP Plugin Installation and Usage Guide

Post by *MarkFilipak »

May I be so bold as to offer this?

SFTP Plugin Installation and Usage Guide for Microsoft Windows

1 - Install the SFTP helpers.
2 - Download the SFTP plugin.
3 - Install the SFTP plugin.
4 - Confirm the SFTP plugin installation.
5 - Confirm the network installation.
6 - Connect to an SFTP server for the first time.
7 - Confirm successful network configuration.
8 - Confirm successful sftpplug.ini creation.
9 - Optionally rename the new SFTP directive.
10 - Adding/changing password and other connection properties.
11 - Adding more target servers to the Secure FTP directives.

Details.
The following aliases are used in these instructions:

[totalcmd] means the TotalCommander installation folder (usually, C:\totalcmd).

[wfx] means the WFX plugins folder (usually, C:\totalcmd\plugins\wfx).

[sftpplug] means the SFTP plugin folder (usually, C:\totalcmd\plugins\wfx\sftpplug).

[Network Neighborhood] means the network (My Computer plus any other computers in your LAN). (Note: Network Neighborhood may be called "My Network Places" in some systems.)

1 - Install the SFTP helpers.
- Download this:

http://www.gknw.net/mirror/curl/win32/curl-7.19.5-devel-mingw32.zip

- Save it in any convenient folder. (Once the helpers are installed, this zip file is no longer needed.)

- Open the zip file.

- Open the curl-7.19.5-devel-mingw32 folder.

- Open the bin folder.

- Copy the following three files to [totalcmd]:

libeay32.dll
libssh2.dll
libssl32.dll

2 - Download the SFTP plugin.
- Download this:

https://plugins.ghisler.com/beta/sftpplug094beta.zip

- Save it in any convenient folder. (Once the plugin is installed, this zip file is no longer needed.)

3 - Install the SFTP plugin.
In TotalCommander, open sftpplug094beta.zip. TotalCommander will confirm that you want to install the plugin. (If you need help installing the plugin, see TotalCommander Help.)

4 - Confirm the SFTP plugin installation.
- In TotalCommander, confirm that the following folder is found in [wfx]:

sftpplug

- Confirm that the following files are found in [sftpplug]:

readme.txt
sftpplug.wfx

5 - Confirm the network installation.
- In TotalCommander, open [Network Neighborhood].

- Confirm the existence of the following folder:

Secure FTP

- Open the Secure FTP folder and confirm the existence of the following two directives:

_F7=new connection.txt ...0 bytes
_Quick Connection ...0 bytes

6 - Connect to an SFTP server for the first time.
- In TotalCommander, open [Network Neighborhood]

- Open the Secure FTP folder and double-click this:

_F7=new connection.txt ...0 bytes

(TotalCommander should display its Connect to SFTP Server dialog.)

- Fill in the form with information about the target server and click "OK". (If you need help with the form, see <...Connect to SFTP Server dialog help is needed here...>.)

- Supply your password when prompted.

- Confirm that you have actually logged into the target server (e.g., that the correct folders and files are displayed).

- Disconnect from the target server. (If you need help disconnecting, see TotalCommander Help.)

7 - Confirm successful network configuration.
- In TotalCommander, open [Network Neighborhood] if necessary.

- Open the Secure FTP folder. You should now find three directives:

_F7=new connection.txt ...0 bytes
_F7=new connection.txt ...107 bytes
_Quick Connection ...0 bytes

(The zero byte, "_F7=new connection.txt" directive is your newly created SFTP connection directive.)

8 - Confirm successful sftpplug.ini creation.
- In TotalCommander, confirm that the following file has been created in [totalcmd]:

sftpplug.ini

- View (F3) sftpplug.ini. (Note the new [_F7=new connection.txt] section. The lines below it are the settings for the target server.)

9 - Optionally rename the new SFTP directive.
You may give your new SFTP directive a descriptive name at any time. For example, you can rename it to "My Server" - hint: the name does not need ".txt".

There are two ways to rename an SFTP directive:

- Directly, in TotalCommander, [Network Neighborhood], Secure FTP folder: Rename the directive as you would rename any file (for example, from "_F7=new connection.txt" to "My Server"). (Note: If you use this method, TotalCommander will automatically update the associated section name in sftpplug.ini.)

- Indirectly, in sftpplug.ini: Use a plain text editor (e.g., Notepad) and simply change the section name from "_F7=new connection.txt" to "My Server". (Note: If you use this method, you must browse back to [Network Neighborhood] and then reopen Secure FTP to see the changes.)

10 - Adding/changing password and other connection properties.
- In TotalCommander, [Network Neighborhood], Secure FTP folder: highlight the connection directive and open its properties. (If you need help opening properties, see TotalCommander Help.)

- Add/change the password or change any other property as needed. (If you need help with the form, see <...Connect to SFTP Server dialog help is needed here...>.)

11 - Adding more target servers to the Secure FTP directives.
There are two ways to add another directive to connect to another SFTP server:

- Directly, in TotalCommander, [Network Neighborhood], Secure FTP folder: Double-click this:

_F7=new connection.txt ...107 bytes

and fill out the resulting Connect to SFTP Server dialog.

- Indirectly, in sftpplug.ini: Use a plain text editor (e.g., Notepad) and simply add a new section by copying lines from an existing connection. You can give the new section a descriptive name at this time. You should delete the "fingerprint" and "password" settings from the new section. Set the other settings in the new section as desired. (Note: If you use this method, you must browse back to [Network Neighborhood] and then reopen Secure FTP to see the changes.)
Hi Christian! Delighted customer since 1999. License #37627
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

MarkFilipak wrote:Thanks Mike. Do you have any documentation for sftpplug.ini? I'm trying to get TC-SFTP to open the remote directory here: /var/www/html/.
Put it after the connection string: 127.0.0.1:22/var/www/html/
See also my post follow up this thread.

Till point 5 in your post above it is OK, but from point 6 and following are some different.
If you press F7 in the Secure FTP folder, it ask you for a new directory, but this is the
name for the new connection!!!

It's historical from the betas prior 8, so I think Christian has to change something here.

mf
Bankster - Word of the Year 2009
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

MarkFilipak wrote:Now I have two _F7=new connection.txt files! One is zero bytes and the other is 107 bytes.
This happened to me too. I ended up renaming one of the two (shift F6).
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

2Christian Did you changed the handling of the _F7=neue Verbindung.txt?
In older versions it opens the Plugin help when execute. The new version up
to 094? opens the Quick connection. Also view with F3 is not possible anymore.
This instigates a lot of confusions for new users as you can see here. Please
set it back as before.

mf
Bankster - Word of the Year 2009
flo89
New Member
New Member
Posts: 1
Joined: 2009-06-17, 21:52 UTC

confirmation dialog

Post by *flo89 »

hi, is there a solution to deactivate the confirmation-dialog, which appears when you open - edit - save and close a file.

it is asking if it is allowed to overwrite the file.

thank you for your help :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Very strange indeed, I will check that.
Author of Total Commander
https://www.ghisler.com
Melwin
New Member
New Member
Posts: 1
Joined: 2009-07-13, 07:16 UTC

Post by *Melwin »

Hail to TotalCommander and this invaluable plugin in particular!
Just a short on two things I observed (VERSION 1.2.58.1a):
- "Move file" from the SFTP-side to a local drive just copies, but doesn't move
- trying to pack file directly from the SFTP-side to a local drive produces the error message "Kann Datei nicht öffnen!" (Couldn't open file)

Hope that helps. Thanks anyway,

Melwin
CoolWater
Power Member
Power Member
Posts: 744
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

2Melwin

you are probably talking about the wrong sftp plugin (see first post about version/download etc.)

Moving from (S)FTP = Copying for security reasons. Imagine what happens if the download is incorrect (i.e. crc mismatch) and the original file on the (S)FTP has already been deleted... Since TC does not make crc checks after downloading, ghisler decided to go the secure way...

Packing from SFTP to local drive works using the SFTP plugin developed by ghisler.

Regards,
CoolWater
User avatar
ado
Senior Member
Senior Member
Posts: 445
Joined: 2003-02-18, 13:22 UTC
Location: Slovakia, Pezinok

Post by *ado »

CoolWater wrote:...the download is incorrect (i.e. crc mismatch) ...
much better example is: when you use ASCII mode instead of binary. In that case everything seems to be ok till you try to use file

ado
Post Reply