From the course: Linux System Engineer: Networking and SSH

Unlock the full course today

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

Configure SSH servers

Configure SSH servers

From the course: Linux System Engineer: Networking and SSH

Start my 1-month free trial

Configure SSH servers

- [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 n/edc/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 values 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