Identity Key in SSH
In OpenSSH, new identity keys can be created using the ssh-keygen tool. The tool generates both a private key and a public key. The public key can then be installed as an authorized key on a server using the ssh-copy-id. Generally each SSH implementation comes with its own tools for generating and installing keys.
While technically similar keys to host keys, identity keys are used for authenticating users, whereas host keys are used for authenticating computers.
Where Are Identity Keys Located
The default location for identity keys on Unix/Linux systems is the
.ssh directory in each user's home directory. Identity key names typically start with
id_, but this does not need to be the case.
Configuring the Location of Identity Keys
With OpenSSH, the location of identity keys is configured using the
IdentityFile configuration option in the OpenSSH client configuration files, usually
.ssh/config in the user's home directory. However, the location of the per-user configuration file may vary depending on server-wide configuration.
Some organizations also use SSH versions with custom compiled-in locations for SSH keys. It is best to use proper SSH key management tools, such as the Universal SSH Key Manager to manage the keys and configure the locations. Each product uses its own configuration mechanism.