Question
How do I generate a single-use auto-login URL for WHM/cPanel/Webmail?
Answer
When logged into SSH as the root user, use the create_user_session API call to generate a login session for the desired service:
Creating a login session for WHM
# whmapi1 create_user_session user=root service=whostmgrd
Creating a login session for a cPanel user
# whmapi1 create_user_session user=cptest service=cpaneld
Note: replace cptest with the cPanel username you want to use to log in.
Creating a login session for webmail
# whmapi1 create_user_session user=test@cptest.tld service=webmaild
Note: replace test@cptest.tld with the email address you want to log in to.
Comments
0 comments
Article is closed for comments.