-
Notifications
You must be signed in to change notification settings - Fork 51
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
Does this extension support code-server? #3
Comments
Hi @kaiyuhou, code-server is just the server side (installed on the remote), this extension is meant to be installed in the vscode desktop forks like vscodium (installed locally) and it will install the compatible vscode-server on the remote automatically. Can you explain a little more about your use case?
|
Thanks for your quick response! I would consider Since the remote machine (where code-server is installed) has the SSH client, it should have the ability to SSH into a target remote. |
So you have remoteMachine1 with code-server and want to connect to remoteMachine2 (and I guess remoteMachine2 cannot be exposed to the internet) and access both of them using the browser? I think that's a really special case, so what you want is:
This extension uses a special vscode API to connect the local ui to the remote machine, in your case that's not needed as they are independent each code-server serves it's own front end resources |
Thanks for your response. I now think I may misunderstand the target use case of remote ssh externsion.
Back to my case:
|
yeah that's not correct, on the contrary all the heavy stuff is done on the remote machine
Maybe this extension fits your use case |
Hi @jeanp413 , you mentioned a SPECIAL API, right? When we try to enable Open Remote SSH in code-server, it warns that This extension is disabled because it is defined to run only in code-server for the Desktop. May I know what the api is? Do you think the code-server's lack of support for the special api the is root cause of this problem? |
@Creling The If you want to install code-server on another machine that's not exposed to the internet then tunnel it through another machine with internet access, that would be a different extension, though some of the ssh code from this extension can be reused. |
Thank you for your quick response. I changed the value of Just to be clarity, I do NOT want to connect to a |
Just to double-check I'm hearing you're right:
is that right? |
If that were the intended use case why not just use ssh jump hosts? |
Yes, it is. |
well, I assume you are talking about accessing a code-server instance that runs on an inner-net vm via a ssh jump host. Firstly, I have multiply servers and installing the code-server many times on different servers is not an interesting work. Yes, coder/coder might be a life saver, but syncing settsings and extensions is another problem. Secondly, many users and I access code-server instances with iPad, it is not so easy to keep a ssh jump host alive in the backgroud, unless the ssh tunnel is maintained by code-server itself, just like what ms vscode server does. |
@Creling nice - I wasn't even aware of that use case. Also setting that up on more than a couple of remote hosts is painful and should be dealt with differently. |
Glad to get your understanding :) |
Cool! @jeanp413 I don't know what's needed to support this in code-server, but if it's something we (the code-server team) can help with, please let me know! |
I'm still not understanding correctly, this extension is not meant to connect a remote machine to another remote machine, if you are using code-server you are already connected to a remote machine. As I said before, if you want to access remote machine B using code-server then just install it in there, this extension kinda does the same in the end it installs the vscode/codium server on the remote machine (code-server is the same just with the web bits so you can connect from the browser) and tunnels the connection locally to desktop vscode. If you don't want to install code-server on remote machine B, then maybe this extension |
I guess it depends on how you define "remote machine." I have code-sever installed on my local macOS laptop and I'd want to use an extension like this one to connect to another remote machine.
Awesome! We'll recommend that moving forward. Thanks! |
FWIW I use code-server locally because I prefer my editor to be a browser tab. I am currently running everything locally, but for some tasks I'd like to connect to a remote host. |
Hey, I want to go over my requirements to prove that remote ssh isn't meaningless on code-server. First of all, due to the internal network of the server, I usually need remote ssh 3 machines on window vs code to reach the server environment I need, but now I hope to use code-server on the first machine at the beginning, so I only need to carry an ipad with me for office. However, code-server alone cannot directly connect to the final server for code compilation, file viewing and other operations. Therefore, I think the use of remote ssh in code-server is very important. Is there any way to achieve the effect I want? |
@Breeze-Zero for your use case one way would be to install code server on the remote machine and then just create an ssh tunnel from the local machine to the port coder server is running |
@jeanp413 The use-case that has not been defined here is Chromebooks (without running Linux). This is why I'm here. I have a server running in the cloud with OnlyOffice, Code-Server, etc. They are my "local apps" on a Chromebook. So the use case I have is:
Unless I run Linux on the Chromebook, I can not run a true local version of VSCode. This is probably similar to the iPad use case described above. |
Chrome OS is based on Linux kernel. |
How is this relevant? It's an ARM variant, so is FreeBSD and MacOS, doesn't mean you can run the same code. You have to run a virtual Linux container inside ChromeOS to use VSCode locally. This is not what we want. We want to run remote, but also have the option of running Open Remote on that remote host. |
I understand, however, if that's possible, no one would be raising this issue. There is also an use case where coder is installed on android and turning an android phone or tablet into a coding environment, since some android devices are advertised as such. |
When I try to install it on code-server, I got the message below:
The text was updated successfully, but these errors were encountered: