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, sheep, Hacker, Stefan2

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

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Hi! I get this error from version 2.80 "Failure requesting identities from ssh-agent!"
This specific error is shown when connecting to ssh-agent with libssh2_agent_connect works, but then a call to libssh2_agent_list_identities fails.

I don't see a specific reason why this call would fail, maybe the list of certificates in Agent is damaged. Try clearing the list and re-adding the certificates (only those you really need).
Author of Total Commander
http://www.ghisler.com
Day Anger
Junior Member
Junior Member
Posts: 4
Joined: 2021-11-23, 11:02 UTC

Re: New SFTP plugin available now

Post by *Day Anger »

There was a problem. I am using Serv-U server. After copying files from the server, they become hidden on the server. Before copying, the file has attribute 666, after copying 000. What could be the problem?
TC v10.0 & SFTP plugin v2.90
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41862
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Please check in the connection settings (Alt+Enter on connection name), there is an option (separately for files and folders) to set the permissions on upload.
Author of Total Commander
http://www.ghisler.com
Day Anger
Junior Member
Junior Member
Posts: 4
Joined: 2021-11-23, 11:02 UTC

Re: New SFTP plugin available now

Post by *Day Anger »

When uploading to the server, everything is fine. Files become hidden on the server just when they are downloaded from the server.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41862
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

That doesn't make any sense, downloading should never have any effect on the source files.

Could you enable logging for FTP in Total Commander (Configuration - Options - FTP)? This will also log plugin operations.
Maybe we can see something in the logs.
Author of Total Commander
http://www.ghisler.com
Day Anger
Junior Member
Junior Member
Posts: 4
Joined: 2021-11-23, 11:02 UTC

Re: New SFTP plugin available now

Post by *Day Anger »

Here is the connection tcftp.log just by ftp. The file does not become hidden.
Spoiler

Code: Select all

----------
Connect to: (01.12.2021 9:46:02)
hostname=192.168.200.23
username=1
startdir=
192.168.200.23=192.168.200.23
220 Serv-U FTP Server v15.2.4 ready...
USER 1
331 User name okay, need password.
PASS ***********
230 User logged in, proceed.
SYST
215 UNIX Type: L8
FEAT
211-Extensions supported
 UTF8
 OPTS MODE;MLST;UTF8
 CLNT
 CSID Name; Version;
 HOST domain
 SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP
 AUTH TLS;SSL;TLS-C;TLS-P;
 PBSZ
 PROT
 CCC
 SSCN
 RMDA directoryname
 DSIZ
 AVBL
 EPRT
 EPSV
 MODE Z
 THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname
 REST STREAM
 SIZE
 MDTM
 MDTM YYYYMMDDHHMMSS[+-TZ];filename
 MFMT
 MFCT
 MFF Create;Modify;
 XCRC filename;start;end
 XMD5 filename;start;end
 XSHA1 filename;start;end
 XSHA256 filename;start;end
 XSHA512 filename;start;end
 COMB target;source_list
 MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl
211 End (for details use "HELP commmand" where command is the command of interest)
CLNT Total Commander (UTF-8)
200 Noted.
OPTS UTF8 ON
200 OPTS UTF8 is set to ON.
Connect ok!
PWD
257 "/" is current directory.
Чтение каталога...
TYPE A
200 Type set to A.
PORT 192,168,200,22,229,118
500 PORT/EPRT (Active Mode/Extended Active Mode) is not supported. Use PASV/EPSV instead of this
PASV
227 Entering Passive Mode (192,168,200,23,175,204)
Server reports local IP -> Redirect to: 192.168.200.23
Connected to PASV port
MLSD
150 Opening BINARY mode data connection for MLSD.
Загрузка
Ожидание ответа сервера...
226 Transfer complete. 725 bytes transferred. 0,71 KB/sec.
TYPE I
200 Type set to I.
PASV
227 Entering Passive Mode (192,168,200,23,175,200)
Server reports local IP -> Redirect to: 192.168.200.23
Connected to PASV port
RETR Setup_MySQL.msi
150 Opening BINARY mode data connection for Setup_MySQL.msi (58895360 Bytes).
Загрузка
Ожидание ответа сервера...
226 Transfer complete. 58 895 360 bytes transferred. 9 414,80 KB/sec.
Copied (01.12.2021 9:46:11): ftp://192.168.200.23//Setup_MySQL.msi -> C:\Temp\Setup_MySQL.msi 58 895 360 байт, 9 295 Кб/с
QUIT
221 Goodbye, closing session.
Here is the tcftp.log of connection via SFTP. The file on the server becomes hidden.
Spoiler

Code: Select all

Connecting to: 192.168.200.23
IP address: 192.168.200.23:22
Server fingerprint:
F3 B1 CD 13 00 E5 08 C6 F8 32 DA D3 72 2F 56 9D
Supported authentication methods: password
Authentication via password for user: 1
Session startup (SFTP)
CONNECT \test
Get directory: \
-rw-rw-rw-   1 Пользователь Группа   58895360 Sep 12  2019 Setup_MySQL.msi
Download file: /Setup_MySQL.msi
Get directory: \
----------   1 Пользователь Группа   58895360 Sep 12  2019 Setup_MySQL.msi
DISCONNECT \test
Log from SFTP Server
Spoiler
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41862
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

There is nothing in the server log regarding Setup_MySQL.msi which would explain why it gets hidden. The SFTP plugin log also only shows
Get directory
Download file
Get directory.

I would try a different SFTP program like FileZilla to check whether the problem is on the server side.
Author of Total Commander
http://www.ghisler.com
Day Anger
Junior Member
Junior Member
Posts: 4
Joined: 2021-11-23, 11:02 UTC

Re: New SFTP plugin available now

Post by *Day Anger »

Everything is fine with FileZilla and WinSCP. The file does not become hidden.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41862
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New SFTP plugin available now

Post by *ghisler(Author) »

Do you have SCP for downloads checked in the SFTP plugin, or not? It uses a completely different download method.
Author of Total Commander
http://www.ghisler.com
Post Reply