Github authenticatie middels Personal Access Token

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Jan Kila

Jan Kila

25/07/2021 15:03:15
Quote Anchor link
Het moet van GitHub weer anders; Hoe dat is wat lastig te doorgronden.
Na een aantal jaren ben ik vergeten hoe het zit; gebruiken gaat immers automatisch.
In mijn sleutelhanger heb ik het volgende:
Naam: vscodevscode.github-authentication
Soort: Appwachtwoord
Account: github.auth
Locatie: vscodevscode.github-authentication
w8w: -----------------

Naam: github.com (Aleph-Design)
Soort: Wachtwoord webformulier
Account: Aleph-Design
Locatie: https://github.com
Opmerking: default
w8w: -----------------

Naam: github.com
Soort: Internetwachtwoord
Account: Aleph-Design
Locatie: https://github.com
w8w: -------------

Naam: github.com
Soort: Internetwachtwoord
Account: Aleph-Design
Locatie: https://github.com
w8w: --------------

Wat mag ik weggooien wat mag / moet ik houden?
Is er een tut die duidelijk maakt Wat en Hoe ik een en ander moet wijzigen?
 
PHP hulp

PHP hulp

07/12/2024 12:20:33
 
- Ariën  -
Beheerder

- Ariën -

25/07/2021 15:13:51
Quote Anchor link
Ik heb begrepen dat dit binnenkort via een SSH-key gaat. Een flink stuk veiliger!

https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
 
Jan Kila

Jan Kila

26/07/2021 13:38:08
Quote Anchor link
Het duurt even voordat het kwartje valt, maar zó opgeschreven leest het makkelijker:

About SSH

Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys you connect to GitHub without supplying your username and personal access token at each visit.

First:
? Check whether you already have an SSH key that you want to use.? "Checking for existing SSH keys"

If you have a key that you want to use:
See: "Adding a new SSH key to your GitHub account."
else:
You’ll need to generate a new SSH key and add it to the ssh-agent.
See: "Generating a new SSH key and adding it to the ssh-agent"
Note:?
You must add the SSH key to your account on GitHub before you use ?the key to authenticate.
See: "Adding a new SSH key to your GitHub account."
end

You can further secure your SSH key by using a hardware security key, which requires the physical hardware security key to be attached to your computer when the key pair is used to authenticate with SSH. You can also secure your SSH key by adding your key to the ssh-agent and using a passphrase. For more information, see "Working with SSH key passphrases."

To use your SSH key with a repository owned by an organization that uses SAML single sign-on, you must authorize the key. For more information, see "Authorizing an SSH key for use with SAML single sign-on."

To maintain account security, you can regularly review your SSH keys list and revoke any keys that are invalid or have been compromised. For more information, see "Reviewing your SSH keys."

If you haven't used your SSH key for a year, GitHub will automatically delete your inactive SSH key as a security precaution. For more information, see "Deleted or missing SSH keys."

If you're a member of an organization that provides SSH certificates, you can use your certificate to access that organization's repositories without adding the certificate to your GitHub account.
For more information, see "About SSH certificate authorities."

Further reading
"Checking for existing SSH keys"
"Testing your SSH connection"
"Troubleshooting SSH"

Toevoeging op 26/07/2021 17:14:43:

Het lukt niet helemaal.
Hier gaat het fout:
bash-3.2$ eval "$(ssh-agent -s)"
Agent pid 91652
bash-3.2$ ssh-add -l -E sha256
The agent has no identities.
bash-3.2$ ssh -T [email protected]
Warning: Permanently added the RSA host key for IP address '140.82.121.3' to the list of known hosts.
Hi Aleph-Design! You've successfully authenticated, but GitHub does not provide shell access.
bash-3.2$ eval "$(ssh-agent -s)"
Agent pid 91676
bash-3.2$ ssh-add -l -E sha256
The agent has no identities.
bash-3.2$ $ ssh-add -K ~/.ssh/id_ed25519
bash: $: command not found
bash-3.2$ ssh-add -K ~/.ssh/id_ed25519
Identity added: /Users/janhkila/.ssh/id_ed25519 ([email protected])
bash-3.2$ eval "$(ssh-agent -s)"
Agent pid 91687
bash-3.2$ ssh-add -l -E sha256
The agent has no identities.
bash-3.2$ eval "$(ssh-agent)"
Agent pid 91697
bash-3.2$ ssh-add -l -E sha256
The agent has no identities.
bash-3.2$ ssh -T [email protected]
Hi Aleph-Design! You've successfully authenticated, but GitHub does not provide shell access.
bash-3.2$ zsh
janhkila@imac-van-jan ~ % ssh -T [email protected]
Hi Aleph-Design! You've successfully authenticated, but GitHub does not provide shell access.
janhkila@imac-van-jan ~ % eval "$(ssh-agent -s)"
Agent pid 91775
janhkila@imac-van-jan ~ % ssh-add -l -E sha256
The agent has no identities.
janhkila@imac-van-jan ~ %

Wat moet ik weggooien om opnieuw te beginnen?
 
Brixxs Solutions

Brixxs Solutions

27/07/2021 22:20:13
 
- Ariën  -
Beheerder

- Ariën -

28/07/2021 23:50:23
Quote Anchor link
Moet je gewoon niet je SSH-key toevoegen aan je account?
https://github.com/settings/keys

Dit zegt toch al genoeg, lijkt me:
Hi Aleph-Design! You've successfully authenticated, but GitHub does not provide shell access.

PS: Je mailadres is zichtbaar in je post.

Ik moet me er ook nog even snel in verdiepen voor mijn verjaardag op 13 augustus... :-P
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.