-
Notifications
You must be signed in to change notification settings - Fork 34
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
Is there a way to use VSCode Remote-SSH extension on Jean-Zay? #67
Comments
Hi, You cannot use the Although it's not officially supported on Jean Zay, you can use SSHFS instead: https://code.visualstudio.com/docs/remote/troubleshooting#_using-sshfs-to-access-files-on-your-remote-host. |
VSCode is a very popular editor / developing environment these days and it would be great to be able to have such a workflow. I am wondering whether such a request has been mentioned to the Jean Zay security team to have their feeling on it. Yes I know things like this (due to hard security constraints) may take some time before being considered/accepted/possible. According to the VSCode doc you only need outbound HTTPS connectivity and all the rest goes via SSH. They don't seem to explictly mention SSH port forwarding (which is disabled on Jean Zay) but maybe this is needed. Also of interest @cedricrommel, where you getting some kind of meaningful error from VSCode or it just did not work? |
Also in practice the most convenient workflow people have found is a combination of sshfs is an option (also mentioned in the issue) but from user feed-back sometimes it is very slow which makes the editing experience too painful to be a workable solution. If you have a difference experience, this would be more than welcome. |
@lesteve : It would require to have port forwarding enabled and it's not something we can do. I have never heard anybody complaining about sshfs being too slow to edit code files. |
OK so you seem to confirm VSCode needs SSH port forwarding so yeah I can understand this is not easy to change ...
OK interesting, because in my experience I have always experienced this (different local setups, different computing centres, different time periods in my life, etc...) and have got similar feed-back from some users. Maybe it is because we use project-wide functionalities very regularly in our developing environment while editing a single fine is probably (more or less) OK. For example I very regularly (emacs setup with helm if you want to know) grep all the files for some pattern in my project and keep typing the pattern with instant updates of the matches. This is something I can not code without I am afraid. Having it not update quasi-instantly kills productivity in my experience. In my experience there is some caching going on with Also as a general point is that using |
I have never tested Regarding |
For completeness (and potentially help other people that bump into this problem), here is the output I was getting (
So it does look like indeed the root of the problem is the SSH port forwarding restriction on Jean-Zay. |
It seems like nothing will be changed about the port forwarding in future, right? There are two issues following this, where sshfs is no workaround: Using git and jupyter notebooks. I would be happy about any solution or workaround (with VS Code) |
Have you seen that you can run a Code-Server instance from our JupyterHub? |
No I have not, but that's great! Thank you |
That would be my guess.
Interested to know more, can you elaborate or share a link to your documentation? Do you mean having a VSCode tab inside a browser by going through the Jean-Zay JupyterHub? If so this is not as nice as using a Desktop VSCode (shortcuts tend to not be reliable inside a browser in my experience) but still could be useful for some people. |
Yes, either by selecting "VSCode" as "Frontend" when starting a new instance from our JupyterHub or by starting a JupyterLab instance and then starting "Code Server" from the "Applications" section. |
It is mentioned here
I agree about Desktop VSCode being preferable...But still a nice improvement! |
There are a lot of extensions missing (e.g. copilot, live share etc.) |
Given that VSCode Remote-SSH doesn't work, I wonder if anyone tried the newer Remote Tunnels extension? Ref. https://code.visualstudio.com/docs/remote/tunnels. Could someone tell if this works with Jean Zay or not? (I cannot try myself since in the process of getting an account at Jean Zay) |
I could not make it work with the
Remote-SSH
feature. From what I understand SSH from Jean Zay going to the outside is very restricted, which might explain why this is not working. Can anyone confirm that and do you know of a way of making it work without ssh?The text was updated successfully, but these errors were encountered: