Quantcast
Channel: Linux Server | cPanel | WebHosting
Viewing all articles
Browse latest Browse all 16

Safe SSH Restart with cPanel Autofixer

$
0
0

Sometimes you are not able to login to your server via SSH because your SSH configuration got messed up, or SSH is running on an unknown port.

The cPanel autofixer is designed to kill off the existing SSH session and start a new one on port 22 with a basic, standard configuration. If for some reason the script is not able to bind on port 22 it will try to find the next available port, so pay attention to it’s output.

The URLs for the autofixer script are as follows:

Non-SSL: http://<IPADDRESS>:2086/scripts2/doautofixer?autofix=safesshrestart SSL: https://<IPADDRESS>:2087/scripts2/doautofixer?autofix=safesshrestart

Once you are done, to bring the SSH configuration back to the original settings just restart SSH:

# service sshd restart

or

WHM >> Home >> Restart Services >> SSH Server (OpenSSH)

 


Viewing all articles
Browse latest Browse all 16

Trending Articles