Generate
From ~/.ssh, write the public key from the private key:
cd ~/.ssh
ssh-keygen -y -f id_rsa > id_rsa.pub-y reads the private key and prints the public key. -f id_rsa is the private key file. It will prompt for the passphrase.
Permission: 0644 for both id_rsa and id_rsa.pub.
Add
ssh-add -K <path>-K adds the key at <path>. Permission: 400 for only self access.
Debug
-vvv is debug:
ssh -vvvUpdated:
2026 Aug 19

