The sshd_config file

We will have a look at the directives that can be the most useful for our everyday service usage, but if we need to know all the details about all the configuration options, we can just invoke man:

man sshd_config

The main SSH daemon configuration file is located at the /etc/ssh/sshd_config event, though we can specify any file at the daemon startup using the -f option on the command line. That said, let's go through and have a look at the most interesting configuration bits:

  • AcceptEnv: This allows the client to copy the environment variable into the session environment sent by the client. It can be useful, but it can also be dangerous, and the default is not to accept any client environment variable.
  • AllowGroups: By ...

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.