Can't connect to Ubuntu 22.04 server via SFTP plugin with pub key

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
alexantr
Junior Member
Junior Member
Posts: 3
Joined: 2020-03-16, 12:38 UTC

Can't connect to Ubuntu 22.04 server via SFTP plugin with pub key

Post by *alexantr »

I'm using SFTP 2.90 and can't connect to Ubuntu 22.04 server with public key.
Same problem in WinSCP https://winscp.net/tracker/1952 was resolved in 5.20 beta.
Please add support rsa-sha2-256 and rsa-sha2-512 algorithms to SFTP plugin.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Can't connect to Ubuntu 22.04 server via SFTP plugin with pub key

Post by *ghisler(Author) »

rsa-sha2-256 and rsa-sha2-512 are not supported by Libssh2 1.10 yet (their latest release), so I cannot add them even if I tried.

They are currently implementing it, but so far they only support the openssl backend:
https://github.com/libssh2/libssh2/issues/634

I wonder why Ubuntu doesn't support "ssh-ed25519" or "ecdsa-sha2-nistp256/384/521", they are all secure methods.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Can't connect to Ubuntu 22.04 server via SFTP plugin with pub key

Post by *ghisler(Author) »

OK, I have installed Ubuntu 22.04 now and written the 2 missing functions myself. Please try this new beta:
https://www.totalcommander.ch/beta/sftpplug300b1.zip
Please note that the plugin itself is unchanged from 2.90, just the libssh2.dll has been updated!
The modified sources of the dll are here:
https://www.totalcommander.ch/beta/sftpplug300b1_libssh2-1.11.0_pre.zip

With these changes I can login to Ubuntu 22.04 with an RSA client certificate. Please try it!
Author of Total Commander
https://www.ghisler.com
alexantr
Junior Member
Junior Member
Posts: 3
Joined: 2020-03-16, 12:38 UTC

Re: Can't connect to Ubuntu 22.04 server via SFTP plugin with pub key

Post by *alexantr »

ghisler(Author) wrote: 2022-06-10, 20:58 UTC Please try this new beta:
https://www.totalcommander.ch/beta/sftpplug300b1.zip
It works! Thank you!
Post Reply