authorized_keys
definition~/.ssh/authorized_keys is the file on the server that lists the public keys the server will accept for your account. The server stores only public keys—this file is where. Every key pair that can log you in has its public half on exactly this list.
Two ways your public key gets there:
Automatic—ssh-copy-id logs in with your current auth method, appends the public key to ~/.ssh/authorized_keys on the server, and sets correct permissions:
ssh-copy-id -i ~/.ssh/id_example.pub user@server
Manual—when ssh-copy-id is unavailable, on the server:
mkdir -p ~/.ssh
chmod 700 ~/.ssh
nano ~/.ssh/authorized_keys
# Paste ENTIRE contents of id_example.pub (one line)
chmod 600 ~/.ssh/authorized_keys
One key per line, the whole line. The permissions are not optional—if the file or its parent directories are writable by other users, SSH ignores it entirely.