Configuring OpenSSH Client Configuration Files
A user configured for SSH key-based authentication on a client system typically has the
following configuration files in their $HOME/.ssh directory:
- SSH2 private and public key files
-
The user's private and public keys, created with the
ssh-keygenutility, are named as follows by default:-
id_rsaandid_rsa.pubon Oracle Linux 8 and 9. -
id_ed25519andid_ed25519.pubon Oracle Linux 10.
The default file names in the preceding list reflect the algorithm (
rsaored25519) used to generate the keys.You can store several key pairs in the
$HOME/.sshdirectory to use across different connections.For more information, see the
ssh-keygen (1)manual page.Caution:
The private key files can be readable and writable by the user but must not be accessible to other users.
-
known_hostsfile-
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.
configfile-
Contains client configuration settings.
Caution:
A
configfile 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.