Before playing with ssh and having a look at what it can do for us, let's take some time to see what are the most relevant files that are used to manage the ssh service and client. The configuration files for the SSHD daemon are usually stored in /etc/ssh where we can find some interesting files:
- moduli: This file contains the prime numbers and generators used by sshd in the Diffie-Hellman group exchange key exchange method, which is needed to create the shared session master encryption key.
- sshd_config: This is the configuration file for the ssh daemon. We will have a closer look at it later to see some interesting and useful directives, which alter the way we connect to a remote server.
- ssh_config: This is the system-wide SSH client configuration file that is used when no user-specific configuration file is found in the user home directory ~/.ssh/config...