Wie ist das SFTP Plugin zu verwenden?

German support forum

Moderators: white, Hacker, Stefan2

Post Reply
carbos72
Junior Member
Junior Member
Posts: 2
Joined: 2021-04-30, 12:41 UTC

Wie ist das SFTP Plugin zu verwenden?

Post by *carbos72 »

Hallo, ich habe das Plugin runtergeladen und installiert. Leider erscheint es nicht in der Netzwerkumgebung. Was kann das sein?
Danke im Voraus
User avatar
Stefan2
Power Member
Power Member
Posts: 4132
Joined: 2007-09-13, 22:20 UTC
Location: Europa

FAQs: SFTP-Plugin Secure FTP SSH WFX-Dateisystem-Plugin

Post by *Stefan2 »

Zum starten des Plugins in die "Netzwerkumgebung" gehen
sftpplug.zip >ReadMe.txt:
You can use the plugin in the Network Neighborhood.

Siehe Laufwerksleiste mit den Laufwerksbuchstaben wie zB: c d e f \ . . . . . . Der Schrägstrich \ steht hier für die Netzwerkumgebung => "Network Neighborhood"
Hilfe über F1-Taste >>> 3. Bedienung , a. Benutzeroberfläche >>> (Laufwerksbuttons) > anklicken >
> "Weiter gibt es einen zusätzlichen Button mit einem Backslash (Rückwärts-Strich) als Laufwerksbuchstaben, welcher den Zugriff auf die Netzwerkumgebung ermöglicht."


NICHT über Menü "Netz > FTP verbinden..." gehen.
(SFTP hat nur das FTP im Namen, ist aber etwas anderes als FTP und FTPS)

=========================================================================================

Aber von Anfang an:



Plugin Installieren

Download:
https://www.ghisler.com/dplugins.htm#dateisys
- suche: Dateisystemerweiterungen (Plugins)
- suche: SFTP (SFTP: Zugriff auf Server via sicheres FTP (FTP via SSH). Benötigt SSH2 auf dem Server. Unterstützt nun auch SSH+SCP ohne SFTP!)
- 32+64 bit herunterladen (sftpplug.zip)
- - -
Siehe auch den Thread hier im Forum:
https://ghisler.ch/board/viewtopic.php?t=19994 >>> New SFTP plugin available now
- - -

- Mit dem Total Commander (!) zum Ordner mit dem "sftpplug.zip" navigieren.
- das ZIP_Archiv im TC doppelt anklicken
(Siehe auch: TC Plugin Add-On AddOn Externe Tools verwenden >> https://ghisler.ch/board/viewtopic.php?p=342114#p342114 )

---------------------------
sftpplug 2.70 - 2020-05-19.zip
---------------------------
Dieses Archiv enthält das folgende Plugin/Zubehör für Total Commander:

Secure FTP plugin (over SSH connection) v2.70 - uses included libssh2.dll for Windows Vista/7/8/8.1/10, see readme.txt!

Möchten Sie es installieren?
---------------------------
Ja Nein
---------------------------


- [Ja] anklicken

- Installieren nach: %Commander_Path%\plugins\wfx\sftpplug
    (%Commander_Path% verweist auf den Ordner des laufenden TCs)
- OK

- Installierte Dateisystem-Plugins:
    Secure FTP=%Commander_Path%\plugins\wfx\sftpplug\sftpplug.wfx
- OK

(Mittels Menü "Konfigurieren > Einstellungen..." >>> "Plugins > Dateisystem-Plugins (WFX) > [Konfigurieren]" kann man das bei Bedarf wieder ändern)


Aus dem sftpplug.zip werden diese Dateien nach plugins\wfx\sftpplug\ kopiert:
64\libssh2.dll
libssh2.dll
readme.txt
sftpplug.wfx
sftpplug.wfx64


=========================================================================================
Nur zur Info:
- Dies wird in der wincmd.ini unter "[FileSystemPlugins]" gespeichert.
    (Für Pfad zur wincmd.ini siehe Menü "Hilfe > Über Total Commander... >>> INI-Files:"
      ... oder Menü "Konfigurieren > Einstellungsdateien direkt ändern...")
=========================================================================================



Plugin Vorbereitungen


- Bitte im Plugins-Ordner unter \wfx\sftpplug\ die "readme.txt" (englisch) lesen.

readme
New secure ftp plugin version 2.70 (32 bit+64 bit)
Copyright (C) 2008-2020 Christian Ghisler, all rights reserved

Installation instructions:
==========================

This plugin is for Windows Vista, 7, 8, 8.1 and 10. It does
not need any additional DLLs because it uses the built-in
Windows SSL library sChannel (Secur32.dll) instead of OpenSSL.

If you use Windows XP or older, please get the other release
of this plugin with libssh2.dll linked to OpenSSL.


You can use the plugin in the Network Neighborhood.

Supported functions:
====================
- connect with username/password
- connect with client certificate
- connect via Pageant from Putty
- connect over a HTTP proxy supporting the CONNECT command
- upload, download, rename, delete, create directory
- resume upload and download
- change Unix attributes (chmod)
- synchronize dirs with correct timestamps(!)
- properties of file (STAT command) via Alt+Enter
- command line support for any shell commands
- new: support for SCP only servers (no SFTP)
- new: keep alive
- new: transfer files >2GB via SCP

Authentication using pageant (client cert in Putty format):
===========================================================
You can now store the key in Putty's pageant.exe tool.
Pageant can be launched when needed by putting a link
in the plugin directory named pageant.lnk pointing to
c:\PathToPutty\pageant.exe cert_file_name
with the name of the client certificate file as a parameter.

Authentication using a client certificate in OpenSSH format:
============================================================
The keys must be in OpenSSH format. Follow these steps to
convert a Putty (*.ppk) key to OpenSSH 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.

Revision log:
=============
20200519 Release, version 2.70 final
...
.....
........
readme auf Deutsch übersetzt
https://www.deepl.com/translator

Neues sicheres ftp-Plugin Version 2.70 (32 Bit+64 Bit)
Copyright (C) 2008-2020 Christian Ghisler, alle Rechte vorbehalten

Installationsanweisungen:
==========================

Dieses Plugin ist für Windows Vista, 7, 8, 8.1 und 10. Es tut
benötigt keine zusätzlichen DLLs, da es die eingebaute
Windows SSL-Bibliothek sChannel (Secur32.dll) anstelle von OpenSSL.

Wenn Sie Windows XP oder älter verwenden, besorgen Sie sich bitte die andere Version
dieses Plugins mit libssh2.dll, die mit OpenSSL verknüpft ist.


Sie können das Plugin in der Netzwerkumgebung verwenden.

Unterstützte Funktionen:
====================
- mit Benutzername/Passwort verbinden
- mit Client-Zertifikat verbinden
- Verbindung über Pageant von Putty
- Verbindung über einen HTTP-Proxy herstellen, der den CONNECT-Befehl unterstützt
- Hochladen, Herunterladen, Umbenennen, Löschen, Verzeichnis erstellen
- Upload und Download wieder aufnehmen
- Unix-Attribute ändern (chmod)
- Verzeichnisse mit korrekten Zeitstempeln synchronisieren(!)
- Eigenschaften der Datei (STAT-Befehl) über Alt+Eingabe
- Befehlszeilenunterstützung für beliebige Shell-Befehle
- neu: Unterstützung nur für SCP-Server (kein SFTP)
- neu: am Leben erhalten
- neu: Dateien >2GB über SCP übertragen

Authentifizierung mittels Pageant (Client-Zertifikat im Putty-Format):
===========================================================
Sie können den Schlüssel jetzt in Putty's pageant.exe Tool speichern.
Der Pageant kann bei Bedarf gestartet werden, indem Sie einen Link
im Plugin-Verzeichnis namens pageant.lnk, das auf
c:\PathToPutty\pageant.exe cert_file_name
mit dem Namen der Client-Zertifikatsdatei als Parameter.

Authentifizierung mit einem Client-Zertifikat im OpenSSH-Format:
============================================================
Die Schlüssel müssen im OpenSSH-Format vorliegen. Folgen Sie diesen Schritten, um
einen Putty-Schlüssel (*.ppk) in das OpenSSH-Format konvertieren:
1. puttygen.exe starten (Teil der Putty-Installation)
2. Laden Sie Ihren Putty-Schlüssel hinein
3. Klicken Sie NICHT auf "Öffentlichen Schlüssel speichern", es wird ein
inkompatibler Schlüssel! Markieren Sie stattdessen den Text in der
Abschnitt "Öffentlicher Schlüssel zum Einfügen in OpenSSH...
und drücken Sie Strg+C (=Kopieren in die Zwischenablage)
4. Erstellen Sie eine neue Datei mit der Erweiterung .pub (Umschalt+F4 in
Total Commander) und drücken Sie Strg+V (=Einfügen)
5. Wählen Sie "SSH-Schlüssel exportieren" aus dem Menü "Konvertierungen".
um die *.pem-Datei zu speichern.

Revisionsprotokoll:
=============
20200519 Veröffentlichung, Version 2.70 endgültig

Übersetzt mit www.DeepL.com/Translator (kostenlose Version)


=========================================================================================


Plugin starten

- Zum Starten des Plugins in die "Netzwerkumgebung" gehen
Siehe Laufwerksleiste mit den Laufwerksbuchstaben wie zB: c d e f \ . . . . . Der Schrägstrich \ steht hier für die Netzwerkumgebung
NICHT über Menü "Netz > FTP verbinden..." gehen. (SFTP hat nur das FTP im Namen, ist aber etwas anderes als FTP und FTPS)


- In der Netzwerkumgebung das "Secure FTP"-Plugin suchen
- und doppelt anklicken.



- Siehe dort die TXT zur weiteren Information:
---------------------------
Pluginhilfe:
F7: Neue Verbindung anlegen
F8/Entf: Verbindung löschen
Enter Verbinden
Alt+Enter Optionen ändern

---------------------------




- Es wurde bereits eine "_Schnellverbindung" angelegt, diese kann per Doppelklick geöffnet werden.
- Mit der Taste F7 kann "ein neuer Ordner", also eine neue Verbindung angelegt werden. So kann man mehrere Verbindungen anlegen.


- Den Verbindungsdialog ausfüllen und mit [OK] bestätigen,.... es wird versucht eine Verbindung auf zu bauen....

Das Plugin-Fenster (in Ausschnitten):
Verbinden mit Server/Pfad oder Server:Port/Pfad _ _ _ _ _ _ Auto IPv4 IPv6
Benutzername:
Kennwort: (Putty's pageant.exe tool verwenden)
Öffentliche Schlüsseldatei *.pub
Private Schlüsseldatei *.pem
..
..
....
Proxy verwenden (zB in einer Firmenumgebung)



mit [OK] wird versucht eine Verbindung auf zu bauen.

Wahrscheinlich benötigt man meist nur Servername, Benutzername und Kennwort.


Tipp: google mal nach "secure ftp plugin total commander" und schaut euch auch Bilder an.


=========================================================================================


Weitere Informationen
ghisler(Author) wrote: 2016-11-30, 15:28 UTC by *ghisler(Author) » Wed Nov 30, 2016 16:28

ftps:// is not used to resolve the name or to connect, it's just to store the connection type.

Maybe your server does not support FTPS, but instead SFTP? These two only have a similar name in common, they are completely different protocols!

FTPS: This is ftp over an SSL-encrypted connection, similar to HTTPS being HTTP over SSL.

SFTP: This is a file transfer protocol via SSH (secure shell). You need a file system plugin to use this.

=========================================================================================

ghisler(Author) wrote: 2020-11-17, 15:13 UTC Re: SFTP Datenübertragungsfehler
Post by *ghisler(Author) » Tue Nov 17, 2020 16:13

Bitte legen Sie eine Logdatei an, vielleicht gibt es damit einen Hinweis auf das Problem:
Konfigurieren > Einstellungen... > FTP > [x] Erzeuge eine Logdatei.
Diese Logfunktion funktioniert auch mit Plugins wie SFTP.

Configuration > Options... > FTP > [x] Create a log file.
Also logs all plugins like SFTP.

Verschleiere persönliche Details, aber behalte dabei möglichst viel der Satz- und Sonderzeichen bei.
Conceal personal details, but keep as much of the punctuation and special characters as possible.

Post it here , or, if asked for, send it to support at ghisler dot com.

- - -

From some Post by *karlchen: _ _ _ Find me: FTP-Log _ _ FTPLog _ _ _ FTP Log

If you have got an open TC connection inside TC, there is small panel right below the button bar
where TC shows the FTP commands it sends and the feedback it gets from the FTP server.
You can doubleclick on this panel and will see the temporary FTP logfile in a TC lister window.
It will not be saved once you close the FTP connection.

You can tell TC to log FTP communication and save it for later use.
Configuration - Options... - FTP - [x]Create logfile
Will also logs all plugins like SFTP.


=========================================================================================


Dalai wrote: 2016-11-24, 19:33 UTC by *Dalai » Thu Nov 24, 2016 20:33

Der FTP-Dialog (Strg+F) ist NUR für FTP und FTPS.
SFTP ist ein Dateisystemplugin und als solches in der Netzwerkumgebung zu finden.
Dort wird es dann als "Secure FTP" aufgelistet, und dort drin muss auch die Verbindung angelegt und benutzt werden.

Grüße
Dalai

Den Host habe ich folgend eingetragen:
ftps://home2XXXX.1and1-data.host:22
Dalai wrote: 2016-11-24, 21:55 UTC Das Protokoll muss weg.
Entweder du nutzt FTPS, dann in der FTP-Funktion des TC (Strg+F)
oder du nutzt SFTP im Plugin, dann aber ohne Protokollangabe.
Also nur "server.1and1.de:22".

Grüße
Dalai



=========================================================================================

Phileas wrote: 2016-11-29, 09:30 UTC by *Phileas » Tue Nov 29, 2016 10:30
sqa_wizard wrote:Noch eine Idee, ohne indiskret zu werden: Ist in deinem Passwort ein Umlaut (ÄÖÜß) enthalten?
Ich bin tief beeindruckt: Es klappt (mit ohne Umlaut)!

Es waren tatsächlich Umlaute enthalten. Okay, das Problem gelöst. Vielen, vielen Dank!

=========================================================================================

Dalai wrote: 2016-11-27, 17:57 UTC by *Dalai » Sun Nov 27, 2016 18:57

Port 22 ist SSH und auch SFTP. Soweit hast du also alles richtig gemacht.

Welche Version der DLLs hast du benutzt?
zlib.dll
ssleay32.dll
libssh2.dll
libeay32.dll

Probier mal die aktuellen DLLs von der TC-Homepage (runterscrollen bis SFTP und dort die Datei für die von dir verwendete Architektur des TC/Plugins laden).

Grüße
Dalai
NEU!
Unter Windows Vista, 7 oder neuer werden keine zusätzlichen DLLs mehr benötigt!
Es benutzt die sChannel-Bibliothek, die in Windows eingebaut ist.


=========================================================================================

Total Commander for Android

Re: sftp copy - write error
Is there any way i could generate a log file
ghisler(Author) wrote: 2018-11-26, 22:06 UTC Post by *ghisler(Author) » Mon Nov 26, 2018 23:06
viewtopic.php?p=349065#p349065

Yes, but it's a bit tricky. Please follow these instructions carefully:
1. Switch to the internal memory, usually /storage/emulated/0 , by going to the home folder, and then tap on the first entry in the list
2. Create a new folder named .TotalCommander including the dot at the beginning (if it doesn't exist yet)
3. You may need to enable the display of hidden files in the TC configuration if you cannot see that folder.
4. Go inside this folder .TotalCommander
5. Create a new file named log.txt by holding down a finger on the first line (..) and choosing "new text file"
6. Close Total Commander via "X" button and restart it

=========================================================================================

sftp connect to AWS EC2 fails ((( .pub file ; PuTTYGen)))
Post by *EliasDT » Sat May 14, 2016 23:53
https://ghisler.ch/board/viewtopic.php?p=307788#p307788

=========================================================================================
shomi1417 wrote: 2021-01-26, 06:27 UTC Re: New SFTP plugin available now: 2.70
shomi1417 wrote: ↑Tue Jan 26, 2021 7:27

Hi,
I instal new sftp plugin, when i hit F7 and try to create new connection nothing happend.
I try to use quick connection with my server ip, user and password and it works so its not server problem.

Again I have new connection window, I use ip, user and pass from server, hit OK and then nothing...

Thanks in advance
ps. I even try new beta plugin but stll same problem.
Stefan2 wrote: 2021-01-26, 09:30 UTC
shomi1417 wrote: 2021-01-26, 06:27 UTC
Perhaps try this:

Configuration > Options... > FTP > [x] Create a log file.
This also logs all plugins like SFTP
Post it here.

Conceal personal details, but keep as much of the punctuation and special characters as possible.
ghisler(Author) wrote: 2021-01-27, 14:58 UTC Re: New SFTP plugin available now: 2.70
Post by *ghisler(Author) » Wed Jan 27, 2021 15:58
shomi1417 wrote: 2021-01-26, 06:27 UTC
Please check whether the file sftpplug.ini is corrupted. It should be in the same directory as the wincmd.ini.

Reason: There seems to be a bug in the 64-bit optimizer of the C compiler which corrupts writing to ini files.
I have disabled optimization now, but it was enabled in earlier versions of the plugin.

=========================================================================================


=========================================================================================


=========================================================================================


=========================================================================================

Ich habe es mir mal angeschaut:


Tipp: google mal nach "secure ftp plugin total commander" und schaut euch auch Bilder an.

Beispiele:
https:// webhosting .platon .org/article.php?support::totalcommander
https:// nickyreinert .de/blog/2017/09/29/total-commander-als-sftp-client-einrichten/

Mittels einem angehängten Googlesuchebefehl "site:ghisler.ch" findet man Informationen aus diesem Forum.
zB: viewtopic.php?t=49284
Mit dem TC-Buttonbefehl "cd \\\Pluginname\Verzeichnis" kann man eine Verbindung auf die Buttonbar legen.

Also etwa:
Kommando: cd \\\Secure FTP\_Schnellverbindung
Parameters:
Startpfad:
Icondatei: wcmicons.dll
Tooltip: Starte Secure FTP mit _Schnellverbindung

https://hoffmann-jahn.de/bild22.png
"_Schnellverbindung" ist hier der Name der angelegten Verbindung im Secure FTP-Plugin


Oder google nach "sftp ftps site:ghisler.ch"
viewtopic.php?t=42115
https://ghisler.ch/board/viewtopic.php?t=46543
viewtopic.php?t=35494

=========================================================================================


:D HTH?

=========================================================================================



Putty public/private key pair *.ppk *.pem // For TC use OpenSSH format *.pub


https://ghisler.ch/board/viewtopic.php?p=307840#p307840
sftp connect to AWS EC2 fails
ghisler(Author) wrote: 2016-05-16, 08:59 UTC Did you create both a pub and pem key as described when you click on the '?' icon in the connection settings?

Behind the '?' icon in the connection settings:

Code: Select all

---------------------------
Help
---------------------------
Here you can enter the location of the public/private key pair for a client certificate authentication.
The keys must be in OpenSSH format.

Follow these steps to convert a Putty (*.ppk) key to OpenSSH format:
1.Start puttygen.exe
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.

Supports environment variables like %commander_path%.
%USER% (uppercase!) will be replaced by current user.
---------------------------
OK   
---------------------------
EliasDT wrote: 2016-05-16, 19:37 UTC Ok, adding the .pub file apparently did the trick: I can now connect to AWS EC2 using the SFTP for Windows Commander.

As a reference to anyone who may stumble upon this topic looking for a solution, I'll write down the steps that solved my issue:
  • Open PuTTYGen,
    (((https://www.ssh.com/academy/ssh/putty/windows/puttygen)))
  • Make sure the 'Type of key to generate' is set to 'SSH-2 RSA'
  • Click the 'Generate' button,
    • Randomly move your mouse as instructed,
  • Select the key in the text box labelled 'Public key for pasting into OpenSSH authorized_keys file:'
    • Copy it (ctrl+c),
    • do NOT close PuTTYgen,
  • Logon to your AWS EC2 instance using a user that is in the sudoers list,
  • Go to the '/home/[some-user]/.ssh' directory,
  • Open the 'authorized_keys' file using a text editor,
    • Paste the key you copied from the text box in PuTTYgen,
    • Save the file,
  • Create a new file on your local machine,
    • Paste the key you copied from the text box in PuTTYgen,
    • Save the file,
  • In PuTTYgen:
    • Export the private key as .pem file, by clicking 'Conversions'->'Export OpenSSH key',
    • Save the private key as .ppk file, by clicking the 'Save private key' button,
  • Start PuTTY,
    • Enter the hostname of you AWS EC2 instance,
    • Select 'Connection'->'SSH'->'Auth',
    • Enter the location of the .ppk private key file you saved earlier in the text field labelled: 'Private key file for authentication:',
    • Select 'Session',
    • Optionally, enter a name for the new connection and click the 'Save' button,
    • Click open to verify if you can connect to your AWS EC2 instance using your newly generated keypair,
  • Create a new SFTP connection in TotalCommander (F7),
    • Enter the name for your new connection,
    • Enter the hostname,
    • Enter the username for which you edited the 'authorized_keys' file,
    • Enter the location of the .pub file you created,
    • Enter the location of you exported .pem private key file,
    • Click Ok,
  • Double click your newly created SFTP connection to connect,
    • If everything went according to plan, you are now connected to your AWS EC2 instance using SFTP,
  • Go get something to drink.
@Christian Ghisler: Thanks for the help.

Elias
=========================================================================================


=========================================================================================


=========================================================================================


=========================================================================================
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Wie ist das SFTP Plugin zu verwenden?

Post by *Horst.Epp »

Nimm das Symbol Netzwerkumgebung in der Liste der Laufwerke
oder gib in der Befehlszeile folgendes ein:
cm_OpenNetwork
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
carbos72
Junior Member
Junior Member
Posts: 2
Joined: 2021-04-30, 12:41 UTC

Re: Wie ist das SFTP Plugin zu verwenden?

Post by *carbos72 »

Vielen lieben Dank. Das hat mir geholfen. Ich habe Netz mit Netzwerkumgebung verwechselt bzw. nicht gewusst dass SFTP nicht zu FTP gehört. Man lernt nie aus.
Viele Grüße
Post Reply