Do you have a control panel? cPanel/WHM? if so, There is an option to manage SSH keys.
Instead, Edit your /root/.ssh/authorized_keys with an editor such as vi or nano, add/remove keys there and save it. You will need to check your /etc/ssh/sshd_config too, make sure to uncomment " AuthorizedKeysFile .ssh/authorized_keys" or just add it to the file then restart SSHD and you are done.
* If you want to prevent SSH keys connections, make sure to comment out AuthorizedKeysFile line and restart sshd.
Last edited by AttackerNET; 09-29-2009 at 03:51 AM.
Server Management - Attacker.NET
Linux & Windows Server Management | Security Services | Outsourced support | High Availability
Certified Information Security Professionals.
E-mail [email protected]