Github authenticatie middels Personal Access Token
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?
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?
https://www.infoq.com/news/2021/04/github-new-token-format/#:~:text=GitHub%20Changes%20Token%20Format%20to%20Improve%20Identifiability%2C%20Secret%20Scanning%2C%20and%20Entropy,-This%20item%20in&text=GitHub%20has%20recently%20moved%20to,%2Dserver%2C%20and%20refresh%20tokens.
Check dit:Gewijzigd op 27/07/2021 22:20:42 door Brixxs Solutions
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