This document provides step-by-step instructions for setting up SSH keys and configuring SSH for new devices using the .dotfiles repository.
id_ed25519
file to the new computer.Set the file permissions for the private key to ensure security:
chmod 600 ~/.ssh/id_ed25519
Execute mac_bootstrap.zsh
from the .dotfiles repository to configure your
environment and create a symbolic link for the SSH config file.
Start the SSH agent and add your SSH key:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
You will be prompted to enter the passphrase for your SSH key.
ssh-add -l
Test your SSH setup, for example, with GitHub:
ssh -T git@github.com
You should receive a message confirming successful authentication.
If necessary, update your SSH public key (id_ed25519.pub) in services like GitHub or GitLab.
Perform operations that require SSH (e.g., Git operations) to ensure everything is configured correctly.