How it works...
Let's take a look at a few of the configuration parameters in the SSH server configuration file. Of course, it's not possible to cover them all here, but I'll highlight a few common ones that are used and tested to configure OpenSSH. The SSH Server configuration is /etc/ssh/sshd_config. Let's open vi /etc/ssh/sshd_config, SSH daemon the configuration file, and scroll down a little bit. The first thing you'll see is Port 22. It's commented out, so if you uncomment this by removing the pound sign, you can change the port that the server listens on.
You notice that all of the lines that start with a hash are comments and defaults. A configuration item is a combination of key-value pairs. The commented lines with key-value pairs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access