Skip to content Skip to sidebar Skip to footer

Can You Use The Node Package Ssh2 In A Browser?

I am building an SFTP client in my browser for school. I am using the node package ssh2 and am able to get my code to work in the terminal. I can use the code to connect and read

Solution 1:

No.

You cannot use ssh2 because it uses native code and cannot be run in the browser. It must be run from node.js only.

Your best bet would be to use something that can proxy ssh over a websocket.

Post a Comment for "Can You Use The Node Package Ssh2 In A Browser?"