1
Support and Feedback / Re: SFTP Connection fails
« on: Today at 08:19:28 »
I ran into the exact same issue. Here is the reason and how to fix it.
The Root Cause
Multi Commander's built-in SFTP module uses an outdated libssh2 library. It only supports legacy algorithms (like ssh-rsa with SHA-1, diffie-hellman-group14-sha1). Modern Linux servers (Debian 12, Ubuntu 22.04+) disable these by default for security, causing the handshake to fail with (null) errors.
Solution 1: Modify Server Config (Workaround)
If you can manage the server, you can force it to allow legacy algorithms:
Edit SSH config: sudo nano /etc/ssh/sshd_config
Add these lines to the very bottom:
KexAlgorithms +diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256
Ciphers +aes128-cbc,aes256-cbc,aes128-ctr,aes256-ctr
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
Restart SSH: sudo systemctl restart ssh
In Multi Commander, clear all keyfile paths and use pure password authentication (it cannot parse modern Ed25519 keys).
Solution 2: Mount as Local Drive (Recommended)
Instead of degrading server security, use tools like RaiDrive or Rclone to mount your SFTP server as a local Windows drive letter (e.g., Z:). You can then manage files in Multi Commander just like a local drive with full speed and modern security.
Hope the developer can update the underlying library soon!
The Root Cause
Multi Commander's built-in SFTP module uses an outdated libssh2 library. It only supports legacy algorithms (like ssh-rsa with SHA-1, diffie-hellman-group14-sha1). Modern Linux servers (Debian 12, Ubuntu 22.04+) disable these by default for security, causing the handshake to fail with (null) errors.
Solution 1: Modify Server Config (Workaround)
If you can manage the server, you can force it to allow legacy algorithms:
Edit SSH config: sudo nano /etc/ssh/sshd_config
Add these lines to the very bottom:
KexAlgorithms +diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256
Ciphers +aes128-cbc,aes256-cbc,aes128-ctr,aes256-ctr
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
Restart SSH: sudo systemctl restart ssh
In Multi Commander, clear all keyfile paths and use pure password authentication (it cannot parse modern Ed25519 keys).
Solution 2: Mount as Local Drive (Recommended)
Instead of degrading server security, use tools like RaiDrive or Rclone to mount your SFTP server as a local Windows drive letter (e.g., Z:). You can then manage files in Multi Commander just like a local drive with full speed and modern security.
Hope the developer can update the underlying library soon!