New SFTP plugin available now
Moderators: Hacker, petermad, Stefan2, white
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
I'm lost...
Thanks Mike, but I'm afraid that I confused you!
Here's the deal:
I'm trying to get SFTP working (not FTPS).
Are you familiar with Bitvise Tunnelier?
My server expects SFTP via port 22.
I installed these:
d:\totalcmd\plugins\wfx\sftpplug\libcurl.dll
d:\totalcmd\plugins\wfx\sftpplug\libeay32.dll
d:\totalcmd\plugins\wfx\sftpplug\libssl32.dll
d:\totalcmd\plugins\wfx\sftpplug\curl.exe
d:\totalcmd\plugins\wfx\sftpplug\readme.txt
d:\totalcmd\plugins\wfx\sftpplug\sftpplug.wfx
For SFTP, what above is not needed?
Is libssh2.dll needed? And if so, do you know where I can find it?
Thanks.
Here's the deal:
I'm trying to get SFTP working (not FTPS).
Are you familiar with Bitvise Tunnelier?
My server expects SFTP via port 22.
I installed these:
d:\totalcmd\plugins\wfx\sftpplug\libcurl.dll
d:\totalcmd\plugins\wfx\sftpplug\libeay32.dll
d:\totalcmd\plugins\wfx\sftpplug\libssl32.dll
d:\totalcmd\plugins\wfx\sftpplug\curl.exe
d:\totalcmd\plugins\wfx\sftpplug\readme.txt
d:\totalcmd\plugins\wfx\sftpplug\sftpplug.wfx
For SFTP, what above is not needed?
Is libssh2.dll needed? And if so, do you know where I can find it?
Thanks.
Hi Christian! Delighted customer since 1999. License #37627
I've following files in the TC main directory:
libeay32.dll
libssh2.dll
libssl32.dll
All files, include libssh2.dll, are from the curl-7.19.5-devel-mingw32 package (bin folder).
See also the 1st post from Christian in this thread.
In the SFTPplug directory are:
readme.txt
sftpplug.wfx
Also you will find the sftpplug.ini in the TC main directory, if you have configured a connection.
What OS has the Server you want to connect? No, I've never used Bitvise Tunnelier.
mf
libeay32.dll
libssh2.dll
libssl32.dll
All files, include libssh2.dll, are from the curl-7.19.5-devel-mingw32 package (bin folder).
See also the 1st post from Christian in this thread.
In the SFTPplug directory are:
readme.txt
sftpplug.wfx
Also you will find the sftpplug.ini in the TC main directory, if you have configured a connection.
What OS has the Server you want to connect? No, I've never used Bitvise Tunnelier.
mf
Bankster - Word of the Year 2009
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
Thanks, Mike!
Thank you for your kind response, Mike.
I looked for "libssh2" and didn't find it. I didn't know it was in the curl package. Thanks. From the second paragraph, I thought that libssh2 would come from Günter. May I suggest that Christian's 1st post be revised to make it clear where libssh2.dll is located and that the ssl DLLs are what come from Günter?All files, include libssh2.dll, are from the curl-7.19.5-devel-mingw32 package (bin folder). See also the 1st post from Christian in this thread.Please note that you also need to get the libssh2 dll from the following address:
http://curl.haxx.se/download.html
Please scroll down to the section named Win32 - Generic
and download the following package (or a newer one):
Win32 2000/XP 7.19.4 libcurl SSL enabled Günter Knauf 1.92 MB
The server is ClarkConnect Community Edition 4.3 (http://www.clarkconnect.com/downloads/isos.php) that runs on Redhat Linux.What OS has the Server you want to connect?
Hi Christian! Delighted customer since 1999. License #37627
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
Oops! I missed the subtlety of that.Mikefield wrote:That's the reason why Christian wrote libcurl in bold letters.
No. Below is a capture of the successful traffic with Tunnelier. Except for the client's port number, the traffic with sftpplug.wfx is identical except that in Frame 5, Len=0 and there's no SSH, so it appears that sftpplug.wfx has nothing to say and the session hangs at that point. (Note: 192.168.0.101 is the client, and 192.168.0.100 is the server.)Mikefield wrote:Was you able now to connect to the server?
Frame 1 (62 bytes on wire, 62 bytes captured)
TCP/IP: 192.168.0.101:1724 --> 192.168.0.100:22
TCP: Seq=0 Len=0 Flags=SYN Win=65535 Opt=[MSS=1460 NOP NOP SACK]
Frame 2 (62 bytes on wire, 62 bytes captured)
TCP/IP: 192.168.0.101:1724 <-- 192.168.0.100:22
TCP: Seq=0 Ack=1 Len=0 Flags=SYN+ACK Win=5840 Opt=[MSS=1460 NOP NOP SACK]
Frame 3 (54 bytes on wire, 54 bytes captured)
TCP/IP: 192.168.0.101:1724 --> 192.168.0.100:22
TCP: Seq=1 Ack=1 Len=0 Flags=ACK Win=65535
Frame 4 (76 bytes on wire, 76 bytes captured)
TCP/IP: 192.168.0.101:1724 <-- 192.168.0.100:22
TCP: Seq=1 Ack=1 Len=22 Flags=PSH+ACK Win=5840
SSH: "SSH-2.0-OpenSSH_3.9p1\n"
Frame 5 (91 bytes on wire, 91 bytes captured)
TCP/IP: 192.168.0.101:1724 --> 192.168.0.100:22
TCP: Seq=1 Ack=23 Len=37 Flags=PSH+ACK Win=65513
SSH: "SSH-2.0-1.84 sshlib: Tunnelier 4.28\r\n"
Hi Christian! Delighted customer since 1999. License #37627
Sorry, here I can't help you further. I've no experience with red hat.
But it runs on our Avaya server and there I can connect with the sftpplug.
Could it be that some packages for sftp are missing on the server? Are you
sure, that sftp is supported by them? Otherwise, when you read the two
posts over your initial post in this thread, it could be, that you want to connect
in this way, but Christians answer is clear to that.
mf
But it runs on our Avaya server and there I can connect with the sftpplug.
Could it be that some packages for sftp are missing on the server? Are you
sure, that sftp is supported by them? Otherwise, when you read the two
posts over your initial post in this thread, it could be, that you want to connect
in this way, but Christians answer is clear to that.
mf
Bankster - Word of the Year 2009
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I suggest that you get CoreFTP server from here:
http://www.coreftp.com/server/index.html
It's a small SFTP server for Windows, which you can use easily to test whether the client side (Total Commander and the SFTP plugin) works or not.
http://www.coreftp.com/server/index.html
It's a small SFTP server for Windows, which you can use easily to test whether the client side (Total Commander and the SFTP plugin) works or not.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
I installed CoreFTP.ghisler(Author) wrote:I suggest that you get CoreFTP server from here:
http://www.coreftp.com/server/index.html
In TC:
Connect
----------
Connect to: (2009-06-14 9:03:39 PM)
hostname=127.0.0.1:22
username=markfilipak
startdir=/
SSH-2.0-CoreFTP-0.1.2
In Core FTP:
Connections:
127.0.0.1 Sun Jun 14 21:09:06 2009
After about a minute I get this from TC:
ftp
No response (timeout)!
With Wireshark - no capture (no wire activity).
With Microsoft Network Monitor - no capture (no wire activity).
I installed a Loopback at 192.168.0.254, changed
FTP: connection details
Host name[:Port]: 192.168.0.254:22
and repeated with Wireshark and Network Monitor. Same results - I didn't think they would work (no wire activity).
It appears the SSH handshake is OK (TC sees: SSH-2.0-CoreFTP-0.1.2), but it looks like TC still cannot talk SSH. I can't confirm as I cannot capture any packets. Unfortunately, the only other computer on my LAN is the red hat server.
It seems that all sniffers capture only wire activity - Do you know of a sniffer that can capture port traffic - port 22 - right off the TCP/IP stack?
Hi Christian! Delighted customer since 1999. License #37627
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
Not likely. Bitvise Tunnerlier is an SFTP client and it can connect to the server.Mikefield wrote:Could it be that some packages for sftp are missing on the server?
Yes.Mikefield wrote:Are you sure, that sftp is supported by them?
I figured that the answer is in the packets. sftp_plugin doesn't answer the SSH handshake (Frame 5).
Hi Christian! Delighted customer since 1999. License #37627
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That looks like an FTP connection to me, not SFTP. To use SFTP, go to drive \ (Network Neighborhood). There should be a new SFTP subfolder after installing the plugin.In TC:
Connect
----------
Connect to: (2009-06-14 9:03:39 PM)
hostname=127.0.0.1:22
username=markfilipak
startdir=/
SSH-2.0-CoreFTP-0.1.2
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
Hmm... You're right. This:ghisler(Author) wrote:That looks like an FTP connection to me, not SFTP.
doesn't match the payload of Frame 4 from my Redhat server:sftp_plugin or Core FTP mini-sftp-server - I don't know which - wrote:SSH-2.0-CoreFTP-0.1.2
ClarkConnect Redhat server wrote:SSH-2.0-OpenSSH_3.9p1\n
Windows Explorer, My Network Places (the new name for Network Neighborhood) shows just this:ghisler(Author) wrote:To use SFTP, go to drive \ (Network Neighborhood). There should be a new SFTP subfolder after installing the plugin.
whereas TC shows this:Add Network Place
Network Setup Wizard
Wireless Network Setup Wizard
Entire Network
and inside Secure FTP:\\My Network Places\\Secure FTP\
\\My Network Places\Entire Network\
\\My Network Places\Add Network Place
\\My Network Places\Network Setup Wizard
\\My Network Places\Wireless Network Setup Wizard
What do you make of that, Christian?\\\Secure FTP\_Quick Connection
\\\Secure FTP\_F7=new connection.txt
Hi Christian! Delighted customer since 1999. License #37627
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
I tried to connect to Core FTP mini-sftp-server using Bitvise Tunnerlier. Here's the result:
The login succeeded.
The romote directory displays in Tunnelier's right-hand window - it is correct.
The Core FTP mini-sftp-server shows the connection made from: 127.0.0.1.
Then, I get this
At that point, I can browse the remote directory using Bitvise Tunnelier as normal. So, I have no idea of what the message box means or whether it is applicable to what happens when I try to connect using sftp_plugin.
Cient machine: WindowsXP-Pro-SP3 with all updates current.
The login succeeded.
The romote directory displays in Tunnelier's right-hand window - it is correct.
The Core FTP mini-sftp-server shows the connection made from: 127.0.0.1.
Then, I get this
?Bitvise Tunnerlier message box wrote:Connection attempt failed.
Reason: Windows error 10061: No connection could be made because the target machine actively refused it.
At that point, I can browse the remote directory using Bitvise Tunnelier as normal. So, I have no idea of what the message box means or whether it is applicable to what happens when I try to connect using sftp_plugin.
Cient machine: WindowsXP-Pro-SP3 with all updates current.
Hi Christian! Delighted customer since 1999. License #37627
MarkFilipak wrote:and inside Secure FTP:What do you make of that, Christian?Code: Select all
\\\Secure FTP\_Quick Connection \\\Secure FTP\_F7=new connection.txt
Here you are right! Now press the F7 Function key (not f and 7). Then it opens a new window
where you can add a new sftp connection. Please note it should be in form of Server:port, i.e. 127.0.0.1:22 .
mf
Bankster - Word of the Year 2009
- MarkFilipak
- Member
- Posts: 164
- Joined: 2008-09-28, 01:00 UTC
- Location: Mansfield, Ohio
Thanks, Mike, but of course I have done this. Here are my settings:Mikefield wrote:Now press the F7 Function key (not f and 7). Then it opens a new window where you can add a new sftp connection. Please note it should be in form of Server:port, i.e. 127.0.0.1:22 .
Here are my registry settings that may or may not apply to TC: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
If you want my uninformed opinion, I can't find an INI file for sftp. If there is supposed to be an sftp_plugin.ini or sftpplug.ini (or whatever it is supposed to be), it appears that the installer did not create one. Here is all the files in my TC install directory:Windows Registry Editor Version 5.00 wrote:[HKEY_CURRENT_USER\Software\Ghisler\Total Commander]
"IniFileName"=".\\wincmd.ini"
"FtpIniName"=".\\wcx_ftp.ini"
"InstallDir"="D:\\totalcmd"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache]
"F:\\wfx_sftp_1_2_58_1_setup.exe"="{cm:VersionInfoDesc} "
"D:\\Program Files\\TC Plugins\\SFTP4TC\\unins000.exe"="Setup/Uninstall"
"D:\\run_net-server-SFTP_Win32_Core-FTP-Server_1-15_(msftpsrvr).exe"="Core FTP mini-sftp-server"
[HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander]
"IniFileName"=".\\wincmd.ini"
"FtpIniName"=".\\wcx_ftp.ini"
"InstallDir"="D:\\totalcmd"
[HKEY_USERS\S-1-5-21-1409082233-1580818891-842925246-1003\Software\Ghisler\Total Commander]
"IniFileName"=".\\wincmd.ini"
"FtpIniName"=".\\wcx_ftp.ini"
"InstallDir"="D:\\totalcmd"
[HKEY_USERS\S-1-5-21-1409082233-1580818891-842925246-1003\Software\Microsoft\Windows\ShellNoRoam\MUICache]
"F:\\wfx_sftp_1_2_58_1_setup.exe"="{cm:VersionInfoDesc} "
"D:\\Program Files\\TC Plugins\\SFTP4TC\\unins000.exe"="Setup/Uninstall"
"D:\\run_net-server-SFTP_Win32_Core-FTP-Server_1-15_(msftpsrvr).exe"="Core FTP mini-sftp-server"
LANGUAGE\
plugins\
DEFAULT.BAR
NO.BAR
CABRK.DLL
FRERES32.DLL
libeay32.dll
libssh2.dll
libssl32.dll
TCUNZLIB.DLL
UNACEV2.DLL
UNRAR.DLL
WCMICONS.DLL
WCMZIP32.DLL
SHARE_NT.EXE
TCMADMIN.EXE
TCUNINST.EXE
TOTALCMD.EXE
WC32TO16.EXE
TOTALCMD.GID
TOTALCMD.HLP
TOTALCMD.INC
WCMICONS.INC
lsplugin.ini
pkplugin.ini
wcx_ftp.ini
wincmd.ini
descript.ion
Wincmd.key
TOTALCMD.EXE.MANIFEST
REGISTER.RTF
SFXHEAD.SFX
CGLPTNT.SYS
HISTORY.TXT
KEYBOARD.TXT
CGLPT9X.VXD
TCUNINST.WUL
WCUNINST.WUL
Hi Christian! Delighted customer since 1999. License #37627