Removing an SSH Public Key (2024)

Delete the line containing the SSH public key that you want to remove from the authorized_keys files associated with the opc user (/home/opc/.ssh/authorized_keys) and the oracle user (/home/oracle/.ssh/authorized_keys).

Caution:

The authorized_keys files may contain numerous keys and altering or removing the wrong key may result in a loss of functionality. To minimize the likelihood of an error make a copy of each authorized_keys file before making any modification. Also, rather than deleting the line containing the public key that you wish to remove, you can disable the key by tagging it with the @revoked marker. For example:

@revoked ssh-rsa AAAAB5W...
Removing an SSH Public Key (2024)
Top Articles
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 6635

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.