User Configuration Files in ~/.ssh on the Server

On the server side, the ~/.ssh directory usually contains the following files:


Contains your authorized public keys. The server uses the signed public key in this file to authenticate a client.


Contains client configuration settings. This file is optional.


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


Contains definitions of environment variables. This file is optional.


Contains commands that ssh executes when a user logs in, before the user’s shell or command runs. This file is optional.

For more information, see the ssh(1) and ssh_config(5) manual pages.