Using SFTP plug-in

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
LongTimeTCUser
Junior Member
Junior Member
Posts: 3
Joined: 2025-04-07, 23:53 UTC

Using SFTP plug-in

Post by *LongTimeTCUser »

I am trying to use the SFTP plug-in with Android "SFTP Server s0 v1". I am able to make the connection with WinSCP but not with Total Commander.

The error I get is: "Could not initialize SFTP session! Unable to startup channel."

Here are the entries I use: Connect to: 192.168.1.106:6789
User name: a10 (SFTP server allows for arbitrary user names)
Password: as specified in SFTP server

Nothing else is filled in.

Thank you.
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Using SFTP plug-in

Post by *Dalai »

Did you specify the port 6789 on the server side (phone)? Which SFTP plugin version did you use?
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Using SFTP plug-in

Post by *JOUBE »

Please use this plugin version: https://www.totalcommander.ch/beta/sftpplug310b5.zip and install it that way plugins are installed within the TC: Press Enter on the zip file within the TC and follow the instructions. (Please do not manually unzip and copy files or anything like that.)
LongTimeTCUser
Junior Member
Junior Member
Posts: 3
Joined: 2025-04-07, 23:53 UTC

Re: Using SFTP plug-in

Post by *LongTimeTCUser »

Thank you. I downloaded the version suggested by Joube and now got the error:
"Error: Could not start SSH session: Unable to exchange encryption keys."
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: Using SFTP plug-in

Post by *JOUBE »

LongTimeTCUser wrote: 2025-04-09, 04:09 UTC Thank you. I downloaded the version suggested by Joube and now got the error:
"Error: Could not start SSH session: Unable to exchange encryption keys."
Okay, the problem with the installation of the plugin itself seams to be fixed now. Next step is to switch on the logging for this connection in the options of the connection and have a look at it. Please switch logging on and note that the filename of the log file is tcftp.log (without s in the file name!). Maybe with the log file you can fix it yourself (Have a key/generate a key/get a key ... it depends... /Switch servers configuration to add passwort to the supported authentication methods: publickey,password /Have a look at the man of your server app: what you have to do on client side ).

A hint: The Tc-plugin needs to have in the options of the connection both in the case of key authentication: key pathfilename of public and privat.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Using SFTP plug-in

Post by *ghisler(Author) »

"Error: Could not start SSH session: Unable to exchange encryption keys."
This error means that the plugin doesn't support any of the encryption algorithm the server supports, and vice versa.

You can use nmap (for Windows or Linux) to see which protocols are supported by the server:
nmap -sV -p Portnumber --script ssh2-enum-algos Servername.com
-sV is necessary if the port number differs from 22.
Author of Total Commander
https://www.ghisler.com
LongTimeTCUser
Junior Member
Junior Member
Posts: 3
Joined: 2025-04-07, 23:53 UTC

Re: Using SFTP plug-in

Post by *LongTimeTCUser »

Here's the log file result:

========================
Connecting to: 192.168.1.106
IP address: 192.168.1.106:6789
Key exchange method: diffie-hellman-group14-sha256
Host key method: ecdsa-sha2-nistp256
Encryption method (both directions): aes256-ctr
MAC (message authentication code) method (both directions): hmac-sha2-256
Error: Could not start SSH session:
Unable to exchange encryption keys

==================
Thanks!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Using SFTP plug-in

Post by *ghisler(Author) »

You need to check that the server has a certificate/private key for ecdsa-sha2-nistp256. If you configure the server to support several methods (and the server reports them all), you also need to have the certificates for these methods, otherwise the handshake will fail when that method is chosen.
Author of Total Commander
https://www.ghisler.com
Post Reply