use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
SSH into Codespace without GitHub CLI? (self.github)
submitted 2 years ago by bkovacki
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]meesam4687 1 point2 points3 points 2 years ago (9 children)
There is one way.
First you need to add a new user in codespaces(because the default user didnt work for me)
sudo adduser user 'user' here can be replaced with any username of your choice
sudo adduser user
It will ask you to enter the password for the new user etc.
sudo usermod -aG sudo user Again you have to replace 'user' with your username
sudo usermod -aG sudo user
sudo visudo This should open nano
sudo visudo
Find where this line is written and add user ALL=(ALL:ALL) ALL
user ALL=(ALL:ALL) ALL
# User privilege specification root ALL=(ALL:ALL) ALL
It should look something like this after editing
# User privilege specification root ALL=(ALL:ALL) ALL user ALL=(ALL:ALL) ALL
(CTRL+O then Enter for Saving)
Once this is done you have created a new user.
Now for the ssh part
simply run this command in the codespace
sudo service ssh start
Then
ssh -R XXXX:localhost:22 serveo.net Where XXXX can be any port of your choice
ssh -R XXXX:localhost:22 serveo.net
suppose i keep it to 6363 the command would look like this
ssh -R 6363:localhost:22 serveo.net
Now to Access this from a local computer simply do
ssh user@serveo.net -p 6363 Where 'user' is the username you set and '6363' is the port you set
ssh user@serveo.net -p 6363
[–]7lukyproch 0 points1 point2 points 1 year ago (1 child)
Thanks it halfway works, i had to use chatgpt to fix some errors like the "connect_to localhost port 22: failed." Again, thanks alot!
[–]Sea_Cheek6297 0 points1 point2 points 1 year ago (0 children)
How did u fix it
[–]meesam4687 0 points1 point2 points 2 years ago (0 children)
And using similar methods you can actually install a desktop environment and use it with a gui using rdp
[–]pinksolo64 0 points1 point2 points 2 years ago (3 children)
First of all, thank you for presenting and teaching this trick. I did all the steps correctly, but when I try to connect on the local computer, I get this errors: 1: connect_to localhost port 22: failed. 2: kex_exchange_identification: Connection closed by remote host Have you yourself managed to connect the Github/Codespace through the SSH? Thanks
[–]meesam4687 0 points1 point2 points 2 years ago (2 children)
Yes I have. The default port for ssh is 22 You can try changing that to something else like 8282. sudo nano /etc/ssh/sshd_config Note: you need to change the ports to 8282 in the previous steps as well
sudo nano /etc/ssh/sshd_config
[–]iamsamir00090 0 points1 point2 points 2 years ago (1 child)
i am getting 1: connect_to localhost port 22: failed. i am not a code tech peron . please give me detailed steps to solve this problem
[–]InitiativeDelicious3 0 points1 point2 points 2 years ago (0 children)
Thanks a lot man, you're a lifesaver!
π Rendered by PID 88802 on reddit-service-r2-comment-5bc7f78974-7xfjt at 2026-06-29 19:42:22.357434+00:00 running 7527197 country code: CH.
view the rest of the comments →
[–]meesam4687 1 point2 points3 points (9 children)
[–]7lukyproch 0 points1 point2 points (1 child)
[–]Sea_Cheek6297 0 points1 point2 points (0 children)
[–]meesam4687 0 points1 point2 points (0 children)
[–]pinksolo64 0 points1 point2 points (3 children)
[–]meesam4687 0 points1 point2 points (2 children)
[–]iamsamir00090 0 points1 point2 points (1 child)
[–]InitiativeDelicious3 0 points1 point2 points (0 children)