Configuration files

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 ...

Get Mastering Bash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.