Why SSH clone option is not available for not logged-in? #53990
Replies: 4 comments 1 reply
-
|
Huh, that's really odd! You won't be able to clone (or do anything else) over SSH without an account, but it seems misguided for GitHub to assume someone who has an account and SSH set up will always be logged in in their browser. 🤔
Git clone is absolutely the correct approach there. If the repository is public it'll work without any authentication, otherwise (and for pushing) just create a personal access token and enter that instead when Git asks for your password. When creating the token make sure to select the repo scope (for repository access, like pushing) and if you use Actions also workflow (required to modify workflow files). |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
This is a really bad UX. |
Beta Was this translation helpful? Give feedback.
-
|
This design decision still bothers me. There are many situations where I’m not logged into an account on the website but want to clone using SSH. I either have to log in, which takes time with 2FA, or I can just convert the HTTP link to an SSH link, as this isn’t secret. It would be great to change this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I had in GitHub interface the
git@github.com:...easy access command earlier, even without login.Now I have only the GitHub CLI option
Why newcomers have to install
gh?HTTPS option does not provide the command line. However, if someone
git clone https://github.com/...- they will have troubles with login/password access: https://github.blog/changelog/2019-08-08-password-based-http-basic-authentication-deprecation-and-removal/Main question: why you removed SSH clone option for not logged in users?
Beta Was this translation helpful? Give feedback.
All reactions