-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
docs(guide): add ssh into code-server on vs code #4042
Conversation
@AyaanZaveri @im-coder-lg this is a WIP (I'm a little stuck cloudflare/cloudflared#443). Would love your feedback/input on this PR if you have time 🙏 |
✨ Coder.com for PR #4042 deployed! It will be updated on every commit.
|
don't worry @jsjoeio, take your time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know, you can also put the ngrok guide here. If you need help in that, I am ready to do so.
The reason I am asking for ngrok is because if some people don't want CloudFlare, they could always try ngrok(it has GitHub login). However, you can tunnel only one port per account on the Free plan.
Left some suggestions and this is really good. Typo alerts, improvements also in review comments. If you need help, you can tell here, and I will help you on this! |
Pre-Build fail too(note) |
hey @jsjoeio I noticed that your branch is 2 commits behind main so I am adding the ngrok part by myself, you can check that and also it will have the latest 2 commits from the main branch. Is that ok? |
@jsjoeio The updated SSHing to VSCode guide:
Is this fine? I fixed the typo too. Should I open a PR to merge these changes to this branch? |
Great work, much better than mine!!! |
SSH into code-server on Visual Studio CodeFollow these steps where code-server is running:
sudo apt update
sudo apt install wget unzip openssh-server
sudo service ssh start
sudo passwd "user" # replace user with your code-server user
Host *.trycloudflare.com
HostName %h
User root
Port 22
ProxyCommand "cloudflared location" access ssh --hostname %h
wget "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip"
unzip "ngrok-stable-linux-amd64.zip"
./ngrok authtoken YOUR_AUTHTOKEN # replace YOUR_AUTHTOKEN with the ngrok authtoken.
./ngrok tcp 22 Now, you get a screen in the terminal like this:
Copy the forwarded link ssh user@0.tcp.ngrok.io -p 19028 The port redirects you to the default SSH port 22, and you can then successfully connect to code-server by entering the password you set for the user. |
Just a few changes. |
WOOOOW! I'm blown away y'all. This async team work is what makes open source the best! I'm going to update my PR with y'all's changes then we can get this merged in. @bpmct might have to collaborate and make a youtube video on this. I think a lot of people could benefit! Thanks again!! You two rock! |
6f42a24
to
0906b91
Compare
Codecov Report
@@ Coverage Diff @@
## main #4042 +/- ##
=======================================
Coverage 63.51% 63.51%
=======================================
Files 36 36
Lines 1872 1872
Branches 379 379
=======================================
Hits 1189 1189
Misses 580 580
Partials 103 103 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So pumped to see this, thanks for documenting this
Anytime, and this is really cool. Lookin' forward to seeing this on Coder.com |
Yup, @bpmct showed some very good changes. If a user is using Fedora or any RPM Linux distro, they can install in their way too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good, just making the changes suggested by @bpmct might be more useful to remove confusion.
Added some suggestions and triggered a review by mistake, mainly changes are in the ngrok section. |
1d1a22f
to
efbfe06
Compare
@bpmct can you take another look at this? I made your requested changes 😄 Thanks man! |
It looks great to me! |
Alright, let's merge it! Thanks for the review @AyaanZaveri 🙌 |
Hey everyone, just a heads-up, we had to revert this change temporarily (see #4060) because it broke our docs site, but we'll get it fixed up and merged again soon! |
Folks, I'm restoring this branch for tests purposes. |
So, is it problems with the SVGs? |
PS: I was one of the people who helped and am looking forward to see this on Coder.com |
@im-coder-lg can you send me an email ben at coder dot com with your mailing address? Would love to send you some swag for your contributions |
Awesome!!!! You should share this on the #code-server channel in Slack 🎉 Thanks for double-checking it works! |
Okay @bpmct |
Oh yeah, the preview works now. Does that mean that something like the SVG images accidentally corrupted the deployment? |
Hmm...I don't think so. I think it was a couple places having ```` backticks instead of three and then a couple typos in code blocks. But it's all fixed now! |
This PR adds steps to
guide.md
for ssh'ing into code-server using Cloudeflare's Argo Tunnels.Inspired by #3961
Thanks to @AyaanZaveri @im-coder-lg for figuring this out and sharing!
Fixes #4017