Skip to content

[Docs]: Why is it possible to connect to code-server with SSH if I use cloudflare tunnel and ngrok? #5613

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

Closed
Moius opened this issue Oct 2, 2022 · 9 comments
Labels
docs Documentation related
Milestone

Comments

@Moius
Copy link
Contributor

Moius commented Oct 2, 2022

cloudflare tunnel and ngork just provide a springboard server about ssh, what is the difference between this and using SSH to connect to code-server directly?
And there is a part of the documentation inaccurate description, in the section using cloudflare tunnel.
"Run cloudflared tunnel --url ssh://localhost:22 on the remote server"
Here there is no hint in the remote server also to install cloudflared.
At the same time the above ~/.ssh/config document in the user settings also does not match the user name used in the following connection.

@Moius Moius added the docs Documentation related label Oct 2, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 4, 2022

cloudflare tunnel and ngork just provide a springboard server about ssh, what is the difference between this and using SSH to connect to code-server directly?

Good question...I'm not as familiar with cloudeflare tunnel but i've used ngrok in the past when I want to expose my code-server and access from a separate machine. I guess those tools provide SSL out of the box? cc @code-asher

And there is a part of the documentation inaccurate description, in the section using cloudflare tunnel.
"Run cloudflared tunnel --url ssh://localhost:22 on the remote server"
Here there is no hint in the remote server also to install cloudflared.
At the same time the above ~/.ssh/config document in the user settings also does not match the user name used in the following connection.

Please open a PR to update it!

@Moius
Copy link
Contributor Author

Moius commented Oct 4, 2022

cloudflare tunnel and ngork just provide a springboard server about ssh, what is the difference between this and using SSH to connect to code-server directly?

Good question...I'm not as familiar with cloudeflare tunnel but i've used ngrok in the past when I want to expose my code-server and access from a separate machine. I guess those tools provide SSL out of the box? cc @code-asher

And there is a part of the documentation inaccurate description, in the section using cloudflare tunnel.
"Run cloudflared tunnel --url ssh://localhost:22 on the remote server"
Here there is no hint in the remote server also to install cloudflared.
At the same time the above ~/.ssh/config document in the user settings also does not match the user name used in the following connection.

Please open a PR to update it!

I only used the cloudflared tunnel to connect, and the result was that the VS code Remote SSH expansion did not use any files from the code-server. Instead, a new .vscodeserver file was created.

@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 4, 2022

I only used the cloudflared tunnel to connect, and the result was that the VS code Remote SSH expansion did not use any files from the code-server. Instead, a new .vscodeserver file was created.

Interesting...AFAIK, you can't use VS Code Remote SSH with code-server so I wouldn't expect that to work unfortunately.

@Moius
Copy link
Contributor Author

Moius commented Oct 4, 2022

I only used the cloudflared tunnel to connect, and the result was that the VS code Remote SSH expansion did not use any files from the code-server. Instead, a new .vscodeserver file was created.

Interesting...AFAIK, you can't use VS Code Remote SSH with code-server so I wouldn't expect that to work unfortunately.

The problem here is that the documentation describes "SSH into code-server on VS Code", but actually using SSH connection on VScode using the method in the article has nothing much to do with code-server, not SSH to code-server. I think this description is not accurate.

@Moius
Copy link
Contributor Author

Moius commented Oct 4, 2022

Maybe the document needs another revision 😂

@jsjoeio
Copy link
Contributor

jsjoeio commented Oct 4, 2022

Lol probably so...feel free to add more changes!

@code-asher
Copy link
Member

Yeah that documentation is confusing to me as well. It seems like we should just remove that section entirely because it is about VS Code remote and nothing to do with code-server as noted.

@jsjoeio jsjoeio added this to the On Deck milestone Oct 4, 2022
@YanivYoobic
Copy link

This is really need to be removed.
Confused me as well. It's just explaining how to SSH to machine and not related to code-server at all.

@tmchartrand
Copy link

Yes, this section is super confusing, definitely seemed to imply that the SSH connection could be used by e.g. VSCode Remote SSH, to connect to the existing code-server instance on the remote machine.

yiliang114 pushed a commit to yiliang114/code-server that referenced this issue Jan 23, 2025
It has nothing to do with code-server and will not connect to or use
code-server in any way.

Closes coder#5613.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation related
Projects
None yet
Development

No branches or pull requests

5 participants