SSH Keys Configuration & Security

💻 GitLesson 13Advanced

SSH keys establish secure connections between your local system and GitHub, removing the need to type passwords on every push/pull action.

1 Generating SSH Keys
Shell — Generating Ed25519 Key
# Generate key pair
ssh-keygen -t ed25519 -C "balaji@test.com"

# Start ssh-agent in the background
eval "$(ssh-agent -s)"

# Add your private key to agent
ssh-add ~/.ssh/id_ed25519

# Copy public key string (add this to GitHub Profile settings)
cat ~/.ssh/id_ed25519.pub

# Test connection authentication
ssh -T git@github.com
2 Code Challenge
Challenge: Generate an Ed25519 SSH key pair, add it to your GitHub profile SSH settings, and verify the connection returns success from SSH.