Error using npm:ssh2-sftp-client@10.0.3

I am trying to connect to a sftp server using the library mentioned in the title (that is a wrapper of ssh2). I am providing a private key. Debugging I could see the following error: // FAILING with: // Signature verification failed: TypeError: Unknown digest algorithm: sha1 // at VerifyImpl.verify (ext:deno_node/internal/crypto/sig.ts:86:12) Could this be a node-compat problem?
DAHDeno AI Helper2/12/2024
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the error message you've provided, it seems like there might be an issue with the digest algorithm specified for signature verification. The error indicates that the sha1 algorithm is unknown, which could suggest a compatibility issue with the ssh2-sftp-client library you're using, especially if it relies on Node.js-specific APIs or modules that may not be fully supported in Deno's Node compatibility layer. Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of this advice. It might be helpful to look into the following: - Ensure that the version of the ssh2-sftp-client library you are using is compatible with Deno's Node compatibility layer. - Check if there's an alternative or updated library that is known to work well with Deno. - Consider whether there's a way to specify a different digest algorithm that is supported by Deno. If you continue to experience issues, you might want to reach out to the maintainers of the ssh2-sftp-client library or seek assistance from the Deno community for more specific guidance on this matter.

Looking for more? Join the community!