Introduction
To revoke access for a public SSH key, you only need to open the /root/.ssh/authorized_keys file with your favorite text editor, and remove the line that contains the public key that you want to revoke access for.
Procedure
Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
Backup the/root/.ssh/authorized_keysfile.cp -a /root/.ssh/authorized_keys{,.$(date +%s)}- Open
/root/.ssh/authorized_keysfile in your preferred text editor. - Remove the line of the key for which you wish to revoke access.
- Save the changes and exit the text editor.
Comments
0 comments
Article is closed for comments.