ssh-keygen -t rsa -b 4096 -C "[email protected]"
cat /Users/NAME/.ssh/id_rsa.pub
cat /Users/NAME/.ssh/id_rsa
ssh-add ~/.ssh/id_rsa
Sign in without having to enter your password in the future
ssh-copy-id user@host
ssh-add -K
ssh-keygen -y
ssh-add C:\Users\name\.ssh\id_rsa
If it fails then the ssh-agent service is probably disabled or not running.
Run the following in powershell (as admin mode): Get-Service ssh-agent and look for the status.
If it is disabled then run the following: Get-Service -Name ssh-agent | Set-Service -StartupType Manual
After that run the ssh-add command again.