课程: Linux System Engineer: Networking and SSH

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Configure SSH servers

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…

内容