first-contributions icon indicating copy to clipboard operation
first-contributions copied to clipboard

Password authentification and ssh

Open hafid-hub opened this issue 2 years ago • 9 comments

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

hafid-hub avatar Sep 23 '22 23:09 hafid-hub

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

JainitBITW avatar Sep 27 '22 08:09 JainitBITW

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.

doczkal avatar Oct 01 '22 14:10 doczkal

💡 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.

MD-ARBAB-SAHID avatar Oct 02 '22 18:10 MD-ARBAB-SAHID

can you assign me this issue

abhint1 avatar Oct 06 '22 16:10 abhint1

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

yellowsamuray avatar Oct 25 '22 08:10 yellowsamuray

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.

Esh07 avatar Jun 27 '23 16:06 Esh07

A tutorial might help

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Esh @.> Sent: Tuesday, June 27, 2023 9:31:10 PM To: firstcontributions/first-contributions @.> Cc: Bafna Jainit Sushil @.>; Comment @.> Subject: Re: [firstcontributions/first-contributions] Password authentification and ssh (Issue #54360)

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.

— Reply to this email directly, view it on GitHubhttps://github.com/firstcontributions/first-contributions/issues/54360#issuecomment-1609814857, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWXKKITGRZBBS5ODYVJ3WFLXNL7UNANCNFSM6AAAAAAQUMJZYM. You are receiving this because you commented.Message ID: @.***>

JainitBITW avatar Jun 27 '23 16:06 JainitBITW

For ssh

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Bafna Jainit Sushil @.> Sent: Tuesday, June 27, 2023 9:32:53 PM To: firstcontributions/first-contributions @.>; firstcontributions/first-contributions @.> Cc: Comment @.> Subject: Re: [firstcontributions/first-contributions] Password authentification and ssh (Issue #54360)

A tutorial might help

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Esh @.> Sent: Tuesday, June 27, 2023 9:31:10 PM To: firstcontributions/first-contributions @.> Cc: Bafna Jainit Sushil @.>; Comment @.> Subject: Re: [firstcontributions/first-contributions] Password authentification and ssh (Issue #54360)

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.

— Reply to this email directly, view it on GitHubhttps://github.com/firstcontributions/first-contributions/issues/54360#issuecomment-1609814857, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWXKKITGRZBBS5ODYVJ3WFLXNL7UNANCNFSM6AAAAAAQUMJZYM. You are receiving this because you commented.Message ID: @.***>

JainitBITW avatar Jun 27 '23 16:06 JainitBITW

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.

Esh07 avatar Jul 12 '23 10:07 Esh07