Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14655 reviews 1734 hosting providers

Questions & Answers

How to remove an SSH Key

Feb 10, 2014 by MirrorXYZ
Hi all
I am currently using cPanel with  Centos. Few months back I had an SSH key placed for security reasons. Now I want to remove all the SS keys and I want to be able to have normal access instead as root with any user. How can I do this?
Can anyone please help
Thanks and regards

1 Answer

0 votes
Feb 10, 2014 by SmartHost
First you will need to change the root password in your WHM. Then edit the /etc/ssh/sshd_config by setting the PermitRootLogin  and PasswordAuthentication values to YES
Then restart your SSHD using this command: /etc/init.d/sshd restart

When you are done with the restart look for the key numbers for users and then delete the allowed keys or edit them.

Then, from your WHM and go to Security Center -> Manage Wheel Group Users and delete irrelevant users