Coder Social home page Coder Social logo

Comments (6)

rongxin-liu avatar rongxin-liu commented on September 21, 2024

For SSH configuration, please follow this instruction again carefully, especially pay attention to when you should enter "y" or not.

Step 1: In your Codespace terminal (code.cs50.io), run ssh-keygen and press enter
Step 2: When prompted to generate a new key, press enter without entering anything (only enter "y" if prompted to overwrite the existing key, otherwise just press Enter without entering anything)
Step 3: Press enter again for all subsequent prompts, until you see something looks like (this is NOT what you will be copying to GitHub):

23d6e489340c4ee219fd0ec9b80997c782019bc5

Step 4: run cat ~/.ssh/id_rsa.pub
Step 5: Copy everything after executing the above command up until the next dollar sign. So for example, this is what you see after running the above command (do not copy what I wrote here, please reference your terminal instead):

$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDU/9wem9R/fyYy9LK9uvgGjq8ij+rrRwiJFyQAgM7NFLk9jX6e+/HF3f/BzG58ksPQrMAiHha120938asldjlkjasldkjlkjasdHmtBnjIGTd3WaSJukfGeKpxyOQHwhBDEqXm8F8pXad8G23+lu1RJKHGiFdZEvPICafQzyiS4QzGvDiiTasdasdasd7dS7CFJA6R2myquopkaa5W9R2ArBsQu2ae+b3jTjdDe4CXzDJ7KHS9yEZtTKeQdLC0BN6IPSi8ASwa4dA9Cti9LHcN+KzIC0dDbcCbMm+sC1G0MIky295XZjVzlPwSi1SdVQQUzAeG4wqkcMgYKhQh+7CVasddsdjKkeLcK3LMDJzPSLKLry7MdG31g0DNeu8XNme7QnQWkzZOXV/kUUjzbY+pzNCRmhFkP13QR+BcXUJSdLD2337g9GMxhRuPdOTtCjVwsA7qasdasdasdlaisdqw909809a8sdcpoukhPDM71Ll0= ubuntu@codespaces_e123a2
$

You only need to copy the content in bold font (yours instead, not mine). The content you have copied should start with "ssh-rsa" and ends with "ubuntu@codespaces_e123a2" (your content would look similar but different to mine).

Step 6: Visit https://github.com/settings/keys, logging in with your GitHub username and password as usual.
Step 7: Click New SSH Key.
Step 8: Paste your public key into the text box under Key. Optionally input a title under Title (e.g., CS50 Codespace or CS50 VS Code).
Step 9: Click Add SSH Key.
Step 10: Run "ssh -T [email protected] -p 443" and see if you SSH key can be verified successfully.

from cs50.readthedocs.io.

pythonyzh avatar pythonyzh commented on September 21, 2024

What you paste was what I followed and didn't work out. Because this doc is outdated with Github upgrading security.
Below is the updated doc that I followed which give me the accessibility to use submit50 and check50.
https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

from cs50.readthedocs.io.

rongxin-liu avatar rongxin-liu commented on September 21, 2024

Thanks for reporting, which part was out-dated precisely? I went through the steps with a brand new codespace and it still worked ok.

from cs50.readthedocs.io.

pythonyzh avatar pythonyzh commented on September 21, 2024

from cs50.readthedocs.io.

rongxin-liu avatar rongxin-liu commented on September 21, 2024

I see. As far as I could tell, based on your screenshot, your public key id_rsa.pub wasn't created at the location /home/ubuntu/.ssh/id_rsa.pub (the default location), so the ssh-agent could not locate your private/public key when trying to authenticate with GitHub.

from cs50.readthedocs.io.

pythonyzh avatar pythonyzh commented on September 21, 2024

from cs50.readthedocs.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.