From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

SSH server configuration

SSH server configuration

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

SSH server configuration

- [Instructor] Configuring SSH servers is a bit more involved than the client. We won't cover all configuration items here, as this is beyond the scope of this program, however we will look at some more common options and I'll show you where to find the answers to all of your SSH server questions. The SSH server configuration is in /etc/ssh/sshd_config. Don't get this confused with the ssh_config, which is your system-wide client configuration. Let's take a look at the server configuration file by loading it into less. We'll need to elevate privileges for this. In a terminal type in sudo less -Nq /etc/ssh/sshd_config and hit Enter. I've added the -N option for line numbers and -q to turn off the error beep. Once again, all lines that start with a hash are comments. Configuration items are written in key value pairs. Lines with key value pairs that are commented, usually show the defaults. For instance, look at the Port 22 item on line 17. This line is commented because the default…

Contents