Get the default configuration file sshd for OpenSSH, optimized for CentOS Linux 8. This example configuration ensures optimal compatibility and performance for OpenSSH, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/sysconfig/sshd.
For more configurations and setup guides, visit our related files section to further customize your system.
# Configuration file for the sshd service.
# The server keys are automatically generated if they are missing.
# To change the automatic creation, adjust sshd.service options for
# example using systemctl enable sshd-keygen@dsa.service to allow creation
# of DSA key or systemctl mask sshd-keygen@rsa.service to disable RSA key
# creation.
# Do not change this option unless you have hardware random
# generator and you REALLY know what you are doing
SSH_USE_STRONG_RNG=0
# SSH_USE_STRONG_RNG=1
# System-wide crypto policy:
# To opt-out, uncomment the following line
# CRYPTO_POLICY=
Download the raw file with wget or curl
wget -O sshd.example https://exampleconfig.com/static/raw/openssh/centos8/etc/sysconfig/sshd
curl https://exampleconfig.com/static/raw/openssh/centos8/etc/sysconfig/sshd > sshd.example
Other config files you might find useful