SSH¶
system: win11 in admin powershell
Start Ssh-agent¶
Generate Key-pair¶
ssh-keygen -t ed25519 -C "[email protected]"
in normal powershell
Add Ssh-key-pair into Ssh-agent¶
Copy id_ed25519.pub into github_ssh_setting Set Auth Key Type¶
Test Ssh Connect by Https¶
ssh -T -p 443 [email protected]
Add Config¶
add the following text into ~/.ssh/config
Test Test Ssh Connect¶
you may need to enter yes as it's requiring to trust connection to github
Generating a new SSH key and adding it to the ssh-agent - GitHub Docs