Junior — Middle
Where and in what format are configuration parameters stored for OpenSSH?
sobes.tech AI
Answer from AI
OpenSSH configuration parameters are stored in key-value text files. The main files are located in the /etc/ssh/ directory for system settings and in the user's home directory in a hidden folder ~/.ssh/ for user settings.
- System configuration file for the client:
/etc/ssh/ssh_config - System configuration file for the server:
/etc/ssh/sshd_config - User configuration file for the client:
~/.ssh/config
The file format is simple: each line contains a parameter and its value, for example:
Port 22
PermitRootLogin no