Comments (6)
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):
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.
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.
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.
from cs50.readthedocs.io.
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.
from cs50.readthedocs.io.
Related Issues (20)
- Add CS50 Manual
- Fix link to Teacher Sites repo
- Unable to fully execute check50 HOT 1
- Hi! senior HOT 1
- Document VS Code features
- VS Code not ide50 HOT 1
- Document general troubleshooting guidelines for Codespace
- Document in `code.md` how to prevent extensions from being uninstalled (e.g., Jupyter)
- Error with codespace HOT 1
- cant use the codespace
- I
- kurs 137
- Error in Submission of work HOT 1
- Unable to Install submit50 in Macbook M1 HOT 2
- Update docs for `style50` once it itself is updated
- Document common `.clang-format` preferences, once `style50` is updated
- Style50 vs Style-guide HOT 2
- Pedro
- Submitting without submit50 repo link seems error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs50.readthedocs.io.