Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kuiperzone opened this issue May 1, 2024 · 2 comments
Open

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

kuiperzone opened this issue May 1, 2024 · 2 comments

Comments

@kuiperzone
Copy link

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?

@Rob-Hague
Copy link
Collaborator

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.

@kuiperzone
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants