Using SFTP plug-in
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 3
- Joined: 2025-04-07, 23:53 UTC
Using SFTP plug-in
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.
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.
Re: Using SFTP plug-in
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
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Re: Using SFTP plug-in
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.)
-
- Junior Member
- Posts: 3
- Joined: 2025-04-07, 23:53 UTC
Re: Using SFTP plug-in
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."
"Error: Could not start SSH session: Unable to exchange encryption keys."
Re: Using SFTP plug-in
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 ).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."
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.
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Using SFTP plug-in
This error means that the plugin doesn't support any of the encryption algorithm the server supports, and vice versa."Error: Could not start SSH session: Unable to exchange encryption keys."
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
https://www.ghisler.com
-
- Junior Member
- Posts: 3
- Joined: 2025-04-07, 23:53 UTC
Re: Using SFTP plug-in
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!
========================
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!
- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Using SFTP plug-in
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
https://www.ghisler.com