Getting WHM Access from SSH on Cpanel Server

To get WHM access from SSH, run

whmapi1 create_user_session user=root service=whostmgrd locale=en

This is useful when you have SSH key access to server, but no root password.

whmapi1

Open the URL you get in terminal in a browser, you have WHM root access with out password.

Advertisement

For Cpanel, use

whmapi1 create_user_session user=CPANEL-USERNAME service=cpaneld locale=en

Check if Cpanel Server need reboot from command line

See Cpanel, Configure Cpanel Server service using whmapi1

Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement