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
JOUBE
Power Member
Power Member
Posts: 1448
Joined: 2004-07-08, 08:58 UTC

Re: New SFTP plugin available now

Post by *JOUBE »

Please add columns for user and group in long view of the sftp plugin, as the sftp plugin knows it because of ls -la

... as it is visible in the log, if detailed logging is enabled ('detailedlog=1') in sftpplug.ini for that server. *)

Like the column Attr...

JOUBE

*) So this isn't true any more I think:

https://www.ghisler.ch/board/viewtopic.php?p=155165#p155165 :

ghisler(Author) wrote: 2008-08-15, 16:24 UTC
(1) It would be nice to have a quick way to determine directory and file ownerships (user and group).
Unfortunately I don't currently see a way to get them via SFTP, it only delivery numerical uid and gid values.
Last edited by JOUBE on 2023-05-07, 07:21 UTC, edited 6 times in total.
JOUBE
Power Member
Power Member
Posts: 1448
Joined: 2004-07-08, 08:58 UTC

Re: New SFTP plugin available now

Post by *JOUBE »

JOUBE wrote: 2023-04-24, 14:17 UTC It would be very useful for the sftp-plugin if you could always fetch commands in the command line box with the same handles and if there was therefore an option that the complete command line history list would always be opened: see this suggestion by fla$her:

https://www.ghisler.ch/board/viewtopic.php?p=429204#p429204
This (Total Commander 11.00 beta 1, history.txt) ...

Code: Select all

03.05.23 Release Total Commander 11.00 beta 1
[...]
01.05.23 Added: New internal commands [...], cm_ShowCmdLineHistory, [...]
[...]
... with this (wincmd.ini) ...

Code: Select all

[Shortcuts]
C+DOWN=cm_ShowCmdLineHistory
works as suggested.

@ghisler(Author): Thanks for implementation

JOUBE
JOUBE
Power Member
Power Member
Posts: 1448
Joined: 2004-07-08, 08:58 UTC

Re: New SFTP plugin available now

Post by *JOUBE »

[Tc11] Ignorelist: Suggestion to the new extended Features (for the file system plugins, and specialy for SFTP plugin):

[Tc11] Ignorelist: Suggestion to the new extended Features

JOUBE
yuripv
New Member
New Member
Posts: 1
Joined: 2023-05-16, 12:58 UTC

Re: New SFTP plugin available now

Post by *yuripv »

(not sure if I should open new thread or posting here is fine)

I can't delete SFTP connections with names consisting of single digit (e.g. 1, 2, 3), multiple digits and all other combinations are fine. The error is "Access denied of file \1!". TC 10.52 64bit, SFTP plugin 3.05.
JOUBE
Power Member
Power Member
Posts: 1448
Joined: 2004-07-08, 08:58 UTC

Re: New SFTP plugin available now

Post by *JOUBE »

yuripv wrote: 2023-05-16, 13:01 UTC I can't delete SFTP connections with names consisting of single digit (e.g. 1, 2, 3), multiple digits and all other combinations are fine. The error is "Access denied of file \1!". TC 10.52 64bit, SFTP plugin 3.05.
Stümmt... ;-)

But it's no big deal: Delete it from the textfile sftpplug.ini directly...

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

Re: New SFTP plugin available now

Post by *ghisler(Author) »

I can indeed reproduce the problem, thanks. Until I find a solution, you can simply rename the connection with Shift+F6 to something with 2 or more characters, then you can delete it.
Author of Total Commander
https://www.ghisler.com
christian_
Junior Member
Junior Member
Posts: 3
Joined: 2023-05-30, 16:22 UTC

Re: New SFTP plugin available now

Post by *christian_ »

Hi. I have a problem using SFTP plugin from Android. My ssh server is key authentication only, I can connect to it via connectbot so I exported the private key in a .pem file and used it to configure the SFTP connection, but I get the following error:

Code: Select all

2023-05-30 18:16:10.551 SFTP:=====================
2023-05-30 18:16:10.563 SFTP:Connessione...: 192.168.0.5
2023-05-30 18:16:10.636 SFTP:Algorithm: EdDSA, Fingerprint: 4c:af:20:a3:80:85:cc:35:2d:d6:e2:9f:62:d2:50:a5
2023-05-30 18:16:10.638 SFTP:Negotiated algorithms: [ kex=curve25519-sha256@libssh.org; sig=ssh-ed25519; c2sCipher=chacha20-poly1305@openssh.com; s2cCipher=chacha20-poly1305@openssh.com; c2sMAC=hmac-sha2-256; s2cMAC=hmac-sha2-256; c2sComp=none; s2cComp=none; ]
2023-05-30 18:16:10.639 SFTP:Accesso in corso...
2023-05-30 18:16:10.640 SFTP:PEM: /storage/emulated/0/Documents/key.pem
2023-05-30 18:16:10.688 SFTP:IllegalArgumentException: Unsupported Algorithm [1.3.101.112]
Please could someone help me to understand what is the problem?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Strange, 1.3.101.112 would be the algorithm id-Ed25519, which is supported by the plugin.
What kind of server is this? And what settings does it use?
Author of Total Commander
https://www.ghisler.com
christian_
Junior Member
Junior Member
Posts: 3
Joined: 2023-05-30, 16:22 UTC

Re: New SFTP plugin available now

Post by *christian_ »

Server is OpenSSH_8.9p1
This is the config file:

Code: Select all

Include /etc/ssh/sshd_config.d/*.conf
Port 22
PrintMotd yes
PermitRootLogin no
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM yes
AuthenticationMethods publickey
PubkeyAuthentication yes
AllowUsers christian
PermitEmptyPasswords no
IgnoreRhosts yes
HostbasedAuthentication no
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
LogLevel VERBOSE
Subsystem sftp /usr/lib/openssh/sftp-server -f AUTHPRIV -l INFO
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

I can't spot any obvious problems with this configuration.
Are you able to login with that private key with an ssh client?
Author of Total Commander
https://www.ghisler.com
christian_
Junior Member
Junior Member
Posts: 3
Joined: 2023-05-30, 16:22 UTC

Re: New SFTP plugin available now

Post by *christian_ »

Yes, it's the same private key I use with ConnectBot (ssh client for Android)

EDIT: solved! Probably there was a problem with the key exported from ConnectBot. With another pair of keys generated on my PC I had no problem.
Sorry for wasting your time :(
JOUBE
Power Member
Power Member
Posts: 1448
Joined: 2004-07-08, 08:58 UTC

Re: New SFTP plugin available now

Post by *JOUBE »

Another topic SFTP plugin:
Investigation of why aliases cannot be executed with the linux shells (e.g. bash) (example in the Tc command line: ls -l works, ll (alias for ls -l (entered in .bashrc) does not work, but of course it works in the linux terminal
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

As I have explained elsewhere, SFTP is using a non-interactive shell (you can't type characters interactively). Aliases don't work in non-interactive shells, see e.g.
https://unix.stackexchange.com/questions/258219/how-to-define-alias-for-non-interactive-non-login-shell
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1448
Joined: 2004-07-08, 08:58 UTC

Re: New SFTP plugin available now

Post by *JOUBE »

Ah, thanks, I don't know that. Very interesting. Actually, at the moment I'm also using functions for the SFTP plugin instead of aliases, which I copy to /usr/bin. But I thought that wasn't a good thing, hence the question about the aliases.

Joube
lbug
Junior Member
Junior Member
Posts: 24
Joined: 2015-10-08, 10:40 UTC

Re: New SFTP plugin available now

Post by *lbug »

Hi,
I hope, I do not touch any rejected topic here since I did not manually read the 90 pages of discussion. But I did search and found only similar topics concerning the main application and the included FTP-functionality, not the SFTP-plugin yet.

So I would like to request some extra columns for the SFTP-plugin. - For me only "owner" and "group" would be sufficient.
It is very cumbersome to [Alt]+[Enter] on every single file - and start again from the beginning if I just forgot the first owners already!

BTW: I see that the most current version just made the properties dialogue working for non-English replies. - Could you please also widen this dialogue box? My server does produce German replies which never fit to this fixed-width-dialogue! To see all details I have to browse the contents with the keyboard or copy them into some text editor first. Again, quite cumbersome.

My personal situation is that I normally use WinSCP for SCP-connections - but it lacks so much functionality which the TotalCommander does provide. It does not even support comparing files by content! So I end up wasting time by copying whole directory structures - just to do the comparison locally with the TotalCommander.
Looking at the SFTP-plugin I thought I could switch away from WinSCP for most of these tasks – but the TotalCommander does not give me vital information I am used to from WinSCP!
(And I doubt that any other plugin [like the "SecInfo" I have read about concerning the main application] could help to add these columns to the SFTP-plugin as well.)
Post Reply