Git SSH Setup for Multiple Accounts

Why SSH? SSH (Secure Shell): Encrypted authentication protocol No password needed after setup More secure than HTTPS Uses public/private key pairs Key Concepts Public Key Safe to share Added to GitHub account Like a lock Private Key Never share Stays on your computer Like a key that opens the lock SSH Agent Background program Holds private keys in memory Prevents re-entering passphrase Generate SSH Key # Generate Ed25519 key (modern, secure) ssh-keygen -t ed25519 -C "your_email@example.com" # When prompted: # File: Press Enter (default ~/.ssh/id_ed25519) # Passphrase: Optional (press Enter to skip) Output: ...

November 27, 2025 · 2 min · Ren Nishino