When using ssh2-sftp-client with a Linux sftp server and if the server owner gives me a rsa key, the ssh2-sftp-client library will not connect unless I added these 2 lines to the server’s config file:
• hostkeyalgorithms=ssh-rsa,ssh-rsa-cert-v01@openssh.com
• pubkeyacceptedalgorithms=+ssh-rsa,ssh-rsa-cert-v01@openssh.com
Or, the server owner needs to give me a key in the ED25519 format
Please see this link for more information about this issue: Typescript: ssh2-sftp-client trouble connecting to sftp server while FileZilla can
However, if I use a client like FileZilla, it can use both the RSA or ED25519 keys no problem without making any changes on the server. I need a Node.js client that works the same way – connecting to the Linux sftp server seamlessly using either key without making any changes to the server
Can someone please make a good recommendation for a different Node.js library for this?
Thank you.