Symptoms:
The following errors are observed in logs:
systemd[1]: Started OpenSSH Daemon.
sshd[8432]: /etc/ssh/sshd_config line 107: FipsMode should be set before Ciphers option
systemd[1]: sshd.service: Main process exited, code=exited, status=255/n/a
systemd[1]: sshd.service: Failed with result 'exit-code'.
systemd[1]: sshd.service: Service RestartSec=100ms expired, scheduling restart.
systemd[1]: sshd.service: Scheduled restart job, restart counter is at 4.
systemd[1]: Stopped OpenSSH Daemon.
The following error is seen when checking the sshd service status:
# systemctl status sshd
vCenter Server Appliance 7.x
vCenter Server Appliance 8.x
The /etc/ssh/sshd_config
file is corrupt or has wrong entries.
Follow any of the below methods depending on the situation to modify the sshd_config file.
/etc/ssh/sshd_config
and replace on problematic VCSA.Since SSH is down, SCP clients may not work. Use the SCP command to copy the file or, alternatively do the following:
sshd_config
file in working VC.sshd_config.bak
sshd_config
(this file should be in the /etc/ssh/
folder only). :wq!