How to use the vps? of ssh bluehost as root

check
I can only log in to my VPS. with permissions other than root
, but I want to use root

.
xxx@xxx.com [~/.ssh]-sharp su
-jailshell: /bin/su: Permission denied
ssh root@xxx.xxx.xxx.xxx
root@xxx.xxx.xxx.xxx: Permission denied (publickey).

check how I can log in to my VPS? as root
how to configure

Apr.05,2021

modify the / etc/sudoers file, find the following line, and add a line under root, as follows:

-sharp-sharp Allow root to run any commands anywhere
root    ALL=(ALL)     ALL
yourUserName   ALL=(ALL)     ALL

after modification, you can now log in with your yourUserName account, and then use the command sudo-to get root permission to operate.

Menu