var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Remove SSH Key
I'm using Centos with Cpanel. Couple of years back some one put a SSH key for security purpose. Now I need to remove all SS keys and I need to access normal. I mean as root without any wheel users. Pleas advice me.
First, I would start by changing your root password in WHM.
Second, edit your /etc/ssh/sshd_config to reflect:
Restart SSHD via:
Third, find the number of keys for each user on the system:
for sshdir in $(find / -type d -name '.ssh'); do wc -l $sshdir/authorized_keys; done 2>/dev/null
Go through those files and edit your allowed keys, or just delete them if you're sure you can access ssh without it.
Then, login to WHM and goto Security Center > Manage Wheel Group Users, then you can remove any extraneous users from wheel from there.
Wow. Problem has been solved. Many many thanks for your help.
Waw, One liner is really good
Originally Posted by
Mad about Hosting!!!!
By gmaister22 in forum Hosting Security and Technology
Last Post: 04-21-2013, 08:34 PM
By Joe90k in forum Dedicated Server
Last Post: 03-28-2013, 06:05 AM
By Markus Oldsan in forum Dedicated Server
Last Post: 06-29-2010, 01:56 PM
By Serverplan in forum Hosting Security and Technology
Last Post: 05-04-2005, 06:43 PM
By wheimeng in forum Hosting Security and Technology
Last Post: 10-20-2004, 11:08 AM