Key pairs and passphrases
SSH public-key authentication uses a public key placed in the server account’s authorized_keys and a private key retained by the client. A passphrase encrypts the private-key file at rest; an agent can temporarily hold unlocked keys. Generate a dedicated key rather than overwriting an existing identity. ssh-keygen -t ed25519 -f ./practice_key -C "teluzia-local-practice" creates a local key pair after passphrase prompts; share only practice_key.pub. Separating public distribution from private custody avoids credential leaks and makes revocation possible by removing the specific authorized public key from a server account. Copying a private key into Git or a chat exposes authentication material; the .pub suffix matters, and passphrases do not justify publishing private files.
ssh-keygen -t ed25519 -f ./practice_key -C "teluzia-local-practice" creates a local key pair after passphrase prompts; share only practice_key.pub.
Separating public distribution from private custody avoids credential leaks and makes revocation possible by removing the specific authorized public key from a server account.
Copying a private key into Git or a chat exposes authentication material; the .pub suffix matters, and passphrases do not justify publishing private files.