Skip to content
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

Password authentification and ssh #54360

Open
hafid-hub opened this issue Sep 23, 2022 · 9 comments
Open

Password authentification and ssh #54360

hafid-hub opened this issue Sep 23, 2022 · 9 comments

Comments

@hafid-hub
Copy link

Thank you for this project.
I have some troubles : when I want to push changes to GitHub, I get this message:

Password for 'https://[email protected]': 
remote: Support for password authentication was removed on August 13, 2021.

I use ssh and it stills ask me for my username and password.

🎯 Goal
Since password authentication has been removed, it is better, in my opinion, to take this into account in this admirable tutorial. I think that a user, like me who is just starting to learn to code, could quickly get discouraged, especially since he has almost reached his goal. And if he used, like me ssh, he will be asked again and again for the password.

💡 Possible solutions
I overcome this problem with this command:
git remote set-url origin [[email protected]](mailto:[email protected]):<Username>/<Project>.git

@JainitBITW
Copy link
Contributor

you can try creating a personal token and use it as a password

@doczkal
Copy link

doczkal commented Oct 1, 2022

you can try creating a personal token and use it as a password

What is the reason the setup of Public+private key authentication is not mentioned?
It would certainly make the process of git-push much simpler.

@MD-ARBAB-SAHID
Copy link

💡 Possible solution
1 . Generate a personal token by navigating:
Settings > Developer settings > Personal access tokens
2. Then generate a new token by clicking on "Generate new token" and then fill the token configuration details like Note(acts like a label to remind you for what reason the token was created) , adding expiry of the token and the scopes(permissions).
3. Click on Generate token.
4. Copy the token generated as it will be available only for the first time.
5. Use that token instead of your password.

@abhint1
Copy link

abhint1 commented Oct 6, 2022

can you assign me this issue

@yellowsamuray
Copy link
Contributor

I had same problem. But then I tried again by making sure to clone with the SSH link, not the HTTPS link

@Esh07
Copy link
Contributor

Esh07 commented Jun 27, 2023

This is a beginner tutorial, I would advise against including SSH configuration.

Configuring SSH can be intimidating for new users, especially those who are not familiar with GitHub or terminal commands. Instead, I suggest sticking with HTTPS, as it is straightforward and only requires a Personal Access Token (PAT) for authentication.

This approach would be more user-friendly for beginners. If want, we can provide an additional tutorial specifically focused on SSH configuration and add a link to it. That's my thought on it.

@JainitBITW
Copy link
Contributor

JainitBITW commented Jun 27, 2023 via email

@JainitBITW
Copy link
Contributor

JainitBITW commented Jun 27, 2023 via email

@Esh07
Copy link
Contributor

Esh07 commented Jul 12, 2023

You're right, and I completely agree. I commented on this in the context of the README.md file; it only mentions and provides a link for SSH configuration. We can improve the README.md file by including an optional link for configuring SSH and recommending them Personal Access Token (PAT) with a link to the official doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants