stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.34k stars 932 forks source link

[ENHANCMENT] SSH access to the workspace #1770

Closed transcental closed 2 years ago

transcental commented 2 years ago

I love the idea behind StackBlitz. It's really useful for when I'm away from my computer and want to work on one of my GitHub projects. However, when I'm on my computer, I prefer my normal developer environment as it's customised in a way that suits me best.

Would it be possible to add SSH access to the workspace so that it's possible to connect in VSC, Terminal, or an editor of the user's choice?

This would be really useful and increase my productivity by ten-fold. Currently, I won't be able to use StackBlitz as a proper part of my workflow until this is implemented.

fvsch commented 2 years ago

Hi @DillonB07. I’m tentatively marking this request as “rejected” because of the way that StackBlitz works: we are not running projects on servers, but directly in the browser:

So there is no server to SSH into.

If you’re looking for a provider which provisions VMs or containers that you can SSH into, I think the fine folks at GitPod have that feature and a compute model that looks closer to what you’re looking for.

ryuheechul commented 2 years ago

I absolutely second this idea. Although there are currently "no servers", but since running NodeJS via WebContainers already broke the limit of what capabilities is possible compare to the past, could it be possible to still expose SSH (or something that allows to mount filesystem to localhost)?

I'm aware that GitPod/GitHub Codespaces allow you to connect via SSH, but they are not Stackblitz though - meaning those services run from somewhere else other than your local machine and require accounts.

Also this post, https://blog.stackblitz.com/posts/introducing-webcontainers/#read-and-write-from-your-local-filesystem kind of give impression of the possibility of sharing files between Stackblitz and localhost but it doesn't mention how.

fvsch commented 2 years ago

@ryuheechul We have a very alpha experiment for working with local files at https://stackblitz.com/local, but it's not a current focus.