SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

Q. Any chance this would work from a web-assembly app?

Open kuiperzone opened this issue 9 months ago • 2 comments

I'm new to web-assembly, but I think I know what the answer might be.

My understanding is that only HTTPS and WebSockets are permissible from a wasm app. So SSH.NET isn't going to fly on this one.

Am I mistaken?

Any thoughts on making an SSH connection from a web-assembly running in a browser?

kuiperzone avatar May 01 '24 14:05 kuiperzone

My understanding is the same as yours, that raw sockets are not permitted in the browser. The library uses sockets for TCP, which SSH uses for transport.

As far as I know, it is not strictly required that SSH sits on top of TCP, so maybe it could be implemented on top of WebSockets? I don't know.

Rob-Hague avatar May 07 '24 11:05 Rob-Hague

I'm thinking about using websock and having a reverse proxy on the server. I'm still not sure whether I can use SSH.NET on the websock client side.

kuiperzone avatar May 07 '24 12:05 kuiperzone