OpenSSH sshd configuration example for CentOS Linux 6

Get the default configuration file sshd for OpenSSH, optimized for CentOS Linux 6. 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 ommited
# to change the automatic creation uncomment the approprite 
# line.

# AUTOCREATE_SERVER_KEYS=RSAONLY
# AUTOCREATE_SERVER_KEYS=NO
AUTOCREATE_SERVER_KEYS=YES

# Do not change this option unless you have hardware random
# generator and you REALLY know what you are doing/

export SSH_USE_STRONG_RNG=0
# export SSH_USE_STRONG_RNG=1
 

    
  

Config Details

Location
/etc/sysconfig/sshd
Operating system
CentOS Linux 6
Length
16 lines
MD5 checksum
59bb52b2455992e2161d716d4f68a720

Usage

Download the raw file with wget or curl

Wget

wget -O sshd.example https://exampleconfig.com/static/raw/openssh/centos6/etc/sysconfig/sshd

cURL

curl https://exampleconfig.com/static/raw/openssh/centos6/etc/sysconfig/sshd > sshd.example