how to to start sshd service on CentOS 7 due to missing /etc/ssh/sshd_config
I've been trying to set up an SSH server on my CentOS 7 machine, but I'm running into an scenario where the `sshd` service won't start because it need to find the `/etc/ssh/sshd_config` file. I initially thought this file would be created automatically when I installed the OpenSSH server, but it seems to be missing. Here's what I've done so far: 1. I installed the OpenSSH server using the command: ```bash sudo yum install openssh-server ``` The installation completed without errors. 2. After installation, when I try to start the `sshd` service with: ```bash sudo systemctl start sshd ``` I get the following behavior in the journal logs: ```plaintext Job for sshd.service failed because the control process exited with behavior code. See "systemctl status sshd.service" and "journalctl -xe" for details. ``` 3. Running `systemctl status sshd` gives me: ```plaintext â sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2023-10-01 12:45:00 UTC; 5s ago ``` And when I check the detailed logs using `journalctl -xe`, the relevant part shows: ```plaintext Oct 01 12:45:00 myhostname sshd[1234]: /etc/ssh/sshd_config: No such file or directory ``` 4. I've checked the `/etc/ssh` directory, and it is indeed empty. I also tried reinstalling the OpenSSH server to see if it would generate the default configuration file: ```bash sudo yum remove openssh-server sudo yum install openssh-server ``` But that did not resolve the scenario. Is there any way to create a default `/etc/ssh/sshd_config` file, or should I try to manually create one? If so, what should the contents be for a basic setup? Any help would be greatly appreciated! I'm on Debian using the latest version of Bash. I'm on Debian using the latest version of Bash. Any suggestions would be helpful.