27.2.1.1 User Configuration Files in ~/.ssh on the Client

On the client side, the ~/.ssh/known_hosts file contains the public host keys that OpenSSH has obtained from SSH servers. OpenSSH adds an entry for each new server to which a user connects.

In addition, the ~/.ssh directory usually contains one of the following pairs of key files:

id_dsa and id_dsa.pub

Contain a user's SSH2 DSA private and public keys.

id_rsa and id_rsa.pub

Contains a user's SSH2 RSA private and public keys. SSH2 RSA is most commonly used key-pair type.

identity and identity.pub

Contains a user's SSH1 RSA private and public keys.

Caution

The private key file can be readable and writable by the user but must not be accessible to other users.

The optional config file contains client configuration settings.

Caution

A config file can be readable and writable by the user but must not be accessible to other users.

For more information, see the ssh(1) and ssh-keygen(1) manual pages.