If you mess up with the SSH setting’s on your server and lock yourself out of ssh then you can reset the SSH configuration settings from WHM by following the below steps :
Login to your WHM on a non secure port that is : 2086
for example : http://serverip:2086
And then browse the URL to reset the SSH configuration settings :
for ex :
That’s all you are done.