AIX sshd start up problem

After rebooting a server sshd did not start. I tried starting using startsrc -s sshd , it came back with a PID but did not start. Looking in the errorlog with errpt -a showed src had a problem starting sshd.

OK, I thought no problem I will just start sshd from the command line to see why it fails to start so I did /usr/sbin/sshd

It came back with bad argument line 53 /etc/ssh/sshd_config

I checked the config file and sure enough at line 53 was :q!

Obviously some one had attempted to quit out of vi without saving and managed to mangle the file instead!

Removing the :q! solved sshd starting correctly.

Leave a Reply

Your email address will not be published. Required fields are marked *