How to Delete SSH Keys in Linux
SSH keys are generated in Linux when a user remotely logs in to the computer, and are used to authenticate a user and allow them access to a Linux computer. If you don't want a particular user to have SSH access to a computer, you can delete their SSH keys from their home directory.
Instructions
-
-
1
Log in to the Linux computer.
-
2
Type "su" and press "Enter."
-
-
3
Type in the root password when prompted and press "Enter."
-
4
Type "rm -rf /home/username/.ssh" into the terminal, with "username" being the actual username of the person whose SSH keys you want to remove.
-
5
Press "Enter" and the SSH keys are deleted.
-
1