How to enable SSH access for user root on virtuozzo VPS centos ??

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
Hello,

I am sorry i have posted this thread at wrong place.

How to enable SSH access for user root on virtuozzo VPS

WHM 11.30.5 (build 2)
CENTOS 5.7 x86_64 virtuozzo on server1

I do have both "WHM" and "virtuozzo panel" root login credentials
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Root access to SSH should be enabled by default. Are you having any specific problems when attempting to access the server over SSH as root?

Thank you.
 
  • Like
Reactions: Lucio Montero

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
If you have access to the machine to get onto it otherwise via "vzctl enter ID#" in the main host node on the machine, try checking the /etc/ssh/sshd_config file to see if direct root login is allowed or not:

Code:
PermitRootLogin yes
If it is set to no or commented out, you likely aren't allowing direct root login.

If you do not have access to check that file, you would need to contact your provider, datacenter or NOC for further assistance. In all reality, they should be your first line of support for system administrative questions on the basics of using Linux.
 

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
In many cases, if you are in virtulization environment you may need to re-install openssh package.
Try with that if root is enabled for ssh.
root is not enabled for ssh, read the title of this thread "How to enable SSH access for user root on virtuozzo VPS centos ?? "
 

quietFinn

Well-Known Member
Feb 4, 2006
1,833
422
438
Finland
cPanel Access Level
Root Administrator
root is not enabled for ssh, read the title of this thread "How to enable SSH access for user root on virtuozzo VPS centos ?? "
If you have root WHM access, you can give a user SSH access, add that user to the wheel group, then connect to the server as that user (using SSH), and when you get connected you su to root. Then you edit /etc/ssh/sshd_config, eable root login and restart sshd.
 

crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
If you have root WHM access, you can give a user SSH access, add that user to the wheel group, then connect to the server as that user (using SSH), and when you get connected you su to root. Then you edit /etc/ssh/sshd_config, eable root login and restart sshd.
Thanks! Bro thanks for the solution,

Have you contacted your datacenter, NOC or provider yet about the issue?
Hi Tristan, I have done it! without taking help of datacenter, NOC or provider
 
Last edited:

Lucio Montero

Registered
May 24, 2020
1
0
0
México
cPanel Access Level
Root Administrator
I also had problem to access as root, but the root acces was really to enable my user as sudoer. for other things, it is rare to need to use root, but thanks here for the response, over all to
If you have root WHM access, you can give a user SSH access, add that user to the wheel group, then connect to the server as that user (using SSH), and when you get connected you su to root. Then you edit /etc/ssh/sshd_config, eable root login and restart sshd.