Search notes:

~/.ssh

~/.ssh is used by SSH daemons and SSH clients to store user specific configuration and authentication data (public and private keys).
~/.ssh/authorized_keys
~/.ssh/id_rsa
~/.ssh/id_rsa.pub

Permissions

Although there is no general requirement to keep the entire content of ~/.ssh secret, the recommended permissions are read/write/execute for the user and not accessible by others:
$ mkdir -m 700 ~/.ssh

Authentication data

Private keys

Private keys are stored in the following files:
  • ~/.ssh/id_dsa
  • ~/.ssh/id_ecdsa
  • ~/.ssh/id_ecdsa_sk
  • ~/.ssh/id_ed25519
  • ~/.ssh/id_ed25519_sk
  • ~/.ssh/id_rsa
A (non-default) identitiy file can be speciefied with ssh -i

Public keys

The corresponding public keys are stored in files with a .pub file extension:
  • ~/.ssh/id_dsa.pub
  • ~/.ssh/id_ecdsa.pub
  • ~/.ssh/id_ecdsa_sk.pub
  • ~/.ssh/id_ed25519.pub
  • ~/.ssh/id_ed25519_sk.pub
  • ~/.ssh/id_rsa.pub

See also

SSH

Index