How to access a cPanel account using root?
Hello!
I'm new to VPS and SSH. I just upgraded my shared hosting to VPS.
Currently I have 2 cPanel accounts in my WHM. I want to know, how can I access an addon domain via SSH using root.
I'm using mac terminal to access my server.
Do I need to go to the corresponding cPanel account and generate key to access the addon domain?
Actual requirement:
I want to run this command on my magento installation: php bin/magento indexer:reindex
But this command need to be executed in the installation directory of magento.
Please help.
Thanks.
Akhil K A
-
with root ssh you have access to everything but if you wanted to access just that user you would grant ssh access to that user in whm and log in as username@yourip if you wanted to access via your root connection you would issue the command su username 0 -
Howdy, You could su - to act as that user. Make sure the user has a shell like bash before you move. Thanks! 0 -
That's goesn't gave access to the public_html directory of a particular user. But this command helped! cd /home/USERNAME/public_html/ Thanks. 0
Please sign in to leave a comment.
Comments
3 comments