Tuesday, January 5, 2021

SYSTEM ADMINISTRATION Red Hat Enterprise Linux

 Configuration file syntax

In Red Hat Enterprise Linux 6, the command exportwas used in configuration files to export the values ​​defined in them. Variables that did not use the command exportwere not exported and were only used as configuration values ​​for the corresponding init script. This is an example file /etc/sysconfig/sshd what is linux certification:

AUTOCREATE_SERVER_KEYS = YES

export SSH_USE_STRONG_RNG = 1

export OPENSSL_DISABLE_AES_NI = 1

In Red Hat Enterprise Linux 6, only the SSH_USE_STRONG_RNGy values OPENSSL_DISABLE_AES_NIwere exported to the ssh daemon environment. The variable AUTOCREATE_SERVER_KEYSwas used to instruct the init script to automatically create public and private keys for RSA and DSA servers.

In Red Hat Enterprise Linux 7, the command exportno longer requires these values ​​to be exported to the environment of the service being configured. So the following file /etc/sysconfig/sshdexports all three environment settings from the ssh daemon:

AUTOCREATE_SERVER_KEYS = YES

SSH_USE_STRONG_RNG = 1

OPENSSL_DISABLE_AES_NI = 1

No comments:

Post a Comment