I've had 14 servers report that the SSHD service appears to be down.
> be me
> 14 servers report sshd is down
> realise I can't ssh in to look why
> ssh restart from whm fails -- "Starting sshd: /etc/ssh/sshd_config: line 49: Bad configuration option: AuthorizedKeysCommandUser"
> open terminal from whm
> `nano /etc/ssh/sshd_config`
> ctrl+w to search for "AuthorizedKeysCommandUser"
> terminal tab closes
> bamboozled again (╯°□°)╯︵ ┻━┻
> open whm and terminal
> `nano /etc/ssh/sshd_config`
> manually find "AuthorizedKeysCommandUser" resisting the urge to ctrl+w search for it
> replace it with "AuthorizedKeysCommandRunAs"
> `/scripts/restartsrv_sshd`
> not profit, time was wasted!
We have a mixture of CentOS 6.10 and 7.4 due to age. (2 run CloudLinux.) Only 3 of the CentOS 6.10 servers that do NOT run CloudLinux were impacted by this though.
Looks like this option has suddenly been replaced for "AuthorizedKeysCommandRunAs"? Not sure why "AuthorizedKeysCommandUser" would have been accepted for the past 3-5 years though, or why it still works fine on the 2 CloudLinux servers also running on top of CentOS 6.10.
--
Anyone else suddenly having this, you can quickly fix it in the WHM terminal with this command:
> be me
> 14 servers report sshd is down
> realise I can't ssh in to look why
> ssh restart from whm fails -- "Starting sshd: /etc/ssh/sshd_config: line 49: Bad configuration option: AuthorizedKeysCommandUser"
> open terminal from whm
> `nano /etc/ssh/sshd_config`
> ctrl+w to search for "AuthorizedKeysCommandUser"
> terminal tab closes
> bamboozled again (╯°□°)╯︵ ┻━┻
> open whm and terminal
> `nano /etc/ssh/sshd_config`
> manually find "AuthorizedKeysCommandUser" resisting the urge to ctrl+w search for it
> replace it with "AuthorizedKeysCommandRunAs"
> `/scripts/restartsrv_sshd`
> not profit, time was wasted!
We have a mixture of CentOS 6.10 and 7.4 due to age. (2 run CloudLinux.) Only 3 of the CentOS 6.10 servers that do NOT run CloudLinux were impacted by this though.
Looks like this option has suddenly been replaced for "AuthorizedKeysCommandRunAs"? Not sure why "AuthorizedKeysCommandUser" would have been accepted for the past 3-5 years though, or why it still works fine on the 2 CloudLinux servers also running on top of CentOS 6.10.
--
Anyone else suddenly having this, you can quickly fix it in the WHM terminal with this command:
sed -e 's/AuthorizedKeysCommandUser/AuthorizedKeysCommandRunAs/g' -i /etc/ssh/sshd_config && /scripts/restartsrv_sshd
Last edited: