I'm having trouble finding the solution to my problem, which I believe is just a noob thing. I've just set up my first VPS using WHM and CPanel. I'm using Putty for SSH access.
I can login to SSH with my CPanel account (not root account). I need to configure some files that I believe are only accessible as the root/sudo user, such as:
/etc/ssh/sshd_config among others. From WHM under SSH Password Authorization Tweak, it says that Password Authentication is enabled, but I cannot login as root via SSH. I get access denied. I also cannot sudo su my regular acct because it says the user is not in the sudoers file. I can't add them to the file because I don't have access to it without logging in as the root user.
Finally, I have tried using SSH keys set up via WHM, but the server refuses the signature despite accepting accepting the key and then asks me for root password, where I once again get Access Denied.
How am I supposed to change files that only the root/sudo user have access to but I cannot SSH as root or sudo user without initial root access?? This is nuts. I really think I'm missing something obvious here, but I just don't know what. Thanks so much for your help.