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
glipman
Junior Member
Junior Member
Posts: 31
Joined: 2005-02-09, 20:59 UTC

Post by *glipman »

I am using a username/password to connect to pfSense.

The changes in pfSense last year are described at https://doc.pfsense.org/index.php/2.3.2_New_Features_and_Changes#SSH_Daemon
One of those changes caused the old plugin failing to connect.
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

ghisler(Author) wrote:2sqa_wizard
Would a single level of subfolders be sufficient? That wouldn't be so difficult to add...
Sorry, you asked sqa_wizard but hope it's OK to answer too.
I prefer two levels of subfolders.

But, would it be easier to add sftp support to the ftp modul in Total Commander? There is just a subfolder menu possible.

What do you think about a big "Connection Modul" there all ftp, sftp, ftps, WebDAVand cloud connections are concentrate together?
There you have one overview over all the connections. You can sort in subfolders to different connections or different Providers
how ever you want. The only bad thing is, it needs every time a complete Total Commander update instead of a small Plugin update.

mf
Bankster - Word of the Year 2009
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Found today another issue with the new beta.
Remote Host: RHEL 5
Use SCP for transfers: ON

Copy files to the remote host is not possible. No fallback to sftp transfer.
If "Use SCP for transfers: OFF", then it works.

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Mikefield
Thanks for your report. Do you get any error in the log? Ghisler.com and Ghisler.ch both use CentOS, which is based on Redhat, and it works with both, so I wonder what's wrong.

You need to enabled FTP logging in Configuration - Options - FTP to get a log of SFTP too.
What do you think about a big "Connection Modul" there all ftp, sftp, ftps, WebDAVand cloud connections are concentrate together?
There you have one overview over all the connections. You can sort in subfolders to different connections or different Providers how ever you want. The only bad thing is, it needs every time a complete Total Commander update instead of a small Plugin update.
Unfortunately these protocols are too different from FTP to make an integration possible right now.
Author of Total Commander
https://www.ghisler.com
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

ghisler(Author) wrote:2Mikefield Thanks for your report. Do you get any error in the log?
Unfortunately no error message:

Sitzung startet... (SFTP)
CONNECT \ACM2
Verzeichnis einlesen: \var\home\ftp\pub
Verzeichnis einlesen: \var\home\ftp\pub\
Datei hochladen: /var/home/ftp/pub/105_96xxdata.txt
Verzeichnis einlesen: \var\home\ftp\pub
DISCONNECT \ACM2

And thanks for your answer regarding the integration of sftp. :-)

mf
Bankster - Word of the Year 2009
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2sqa_wizard
Would a single level of subfolders be sufficient? That wouldn't be so difficult to add...
A single level would fit to my needs ... just to get it a little structured.
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Mikefield
Strange, there is no error. Maybe a firewall problem? Maybe you can see anything in the SSH server log?
Author of Total Commander
https://www.ghisler.com
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

I've no root access to this server to get all logs. Did you need a specific log file?
I tried with different (ACM) server and there was no problem with the SCP checkbox enabled. :-)
So it could be indeed a firewall problem, thanks for the hint Christian.
As I know, that specific server locates after a balabit box, which can cause this error. :-(

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It's also possible that scp isn't installed on the server. Do you have shell access (no root)? Then try the command
scp
without parameters on the command line. It should show you either the usage of the command, or an error that scp isn't installed.
Author of Total Commander
https://www.ghisler.com
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Yes, shell access is possible and scp is installed. After the execution of the command scp it opens the help menu how to use scp.

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I have no other ideas why it would fail. :(
Author of Total Commander
https://www.ghisler.com
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

Do not fret Christian. It's only this server, so for me it causes in the balabit box. And I know that I've to disable scp support.
I only wonder why it doesn't fall back to sftp. But if no error message comes from the server, how should the plugin switch to sftp.
I can live with that.

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, that's exactly the problem - the plugin doesn't get any error back from the server...

Edit: It may be a server configuration problem, see this link:
Stack exchange
Author of Total Commander
https://www.ghisler.com
User avatar
Mikefield
Power Member
Power Member
Posts: 628
Joined: 2006-02-26, 19:13 UTC
Location: Oberursel, Germany HE

Post by *Mikefield »

I've tried it with a different server (Sun Solaris 9) which is also located behind the balabit box, and there is the same problem.
SCP transfer is not possible, no error message and no sftp fallback. For me it is very clear, that the problem is the balabit box.
But I'm wondering that a message box pops up "Fehler beim Hochladen der Datei!" and vice versa "Fehler beim Herunterladen!".
So, an error is detected.

mf
Bankster - Word of the Year 2009
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hi!

OK, I have added some more logging to the plugin. Please try beta 3:
http://ghisler.fileburst.com/beta/sftpplug143beta3.zip

Source code:
http://ghisler.fileburst.com/beta/sftpplug_src143beta3.zip

Maybe it gives me some more clues...
Author of Total Commander
https://www.ghisler.com
Post Reply