0

Recently one of our linux server in the cloud was not coming up after reboot. When we checked with vendor, he said it may be due to sshd_config file not configured properly. There was also file system corruption issue during that time. We are not sure if it was really a file system corruption issue or sshd_config file misconfiguration issue which made server unbootable.

The sshd_config file was configured as below: AllowUsers user1 user2 user3 user4 user5 AllowUsers user6 user7 AllowUsers user8 AllowUsers user9

As per the vendor there can't be multiple entries for AllowUsers so the entries for user6 user7 user8 user9 are invalid. AllowUsers user6 user7 AllowUsers user8 AllowUsers user9

I went though some blogs including Red-hat https://access.redhat.com/discussions/3872831 but it’s not clear from anywhere whether this is a correct configuration or not. Also, is there any way if sshd_config configuration can be validated?

  • 1
    Is the server actually running Ubuntu? or RedHat? You may be able to validate the sshd_config file by running sshd -t or sshd -T – steeldriver Apr 15 at 22:12
  • Server is running Red Hat Enterprise Linux Server release 6.10 (Santiago). I tried to validate the file using sshd -t and sshd -T but it gives you some results only if there is any syntax error in sshd_config file. In my case it didn't gave me any error. – Adesh Hambir Apr 16 at 0:09
  • Sorry RedHat is off-topic - you can ask on unix.stackexchange.com – steeldriver Apr 16 at 0:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.