Why Use SSH Keys? #
SSH keys replace password login with cryptographic key pairs. Benefits: no password to type or remember, more secure than passwords (immune to brute force), required for automated scripts and cron jobs.
Generate a Key Pair #
macOS / Linux #
ssh-keygen -t ed25519 -C "[email protected]"n# Press Enter for default location (~/.ssh/id_ed25519)n# Optionally set a passphrase
Windows (PowerShell) #
ssh-keygen -t ed25519
Copy Public Key to Seedbox #
ssh-copy-id username@seedbox-ip
Enter your seedbox password one last time. From now on, SSH connects without a password.
Manual Method (if ssh-copy-id unavailable) #
# Display your public keyncat ~/.ssh/id_ed25519.pubnn# SSH into seedbox, then:nmkdir -p ~/.sshnecho "YOUR_PUBLIC_KEY_HERE" >> ~/.ssh/authorized_keysnchmod 700 ~/.sshnchmod 600 ~/.ssh/authorized_keys
Test #
ssh username@seedbox-ipn# Should connect without asking for password