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"
[size=xsmall]
Toevoeging op 26/07/2021 17:14:43:[/size]
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?