How To Remove an SSH Key From Cloud Server

To remove an SSH key from your cloud server, follow these steps.

1. Navigate to the default directory where SSH keys are stored using this command:

cd /home/user/.ssh

2. Delete the file using the following command:

 rm -rf file name

In a remote server, go to $HOME/.ssh/authorized_keys or $HOME/.ssh/authorized_keys2 file and remove your public key. This will delete the server login from the home computer. You can delete the user from your system using the pw (FreeBSD) or userdel (Linux / UNIX) command.

Related articles:

Was this article helpful?

Still need help?

Heficed Slack Community

Get involved in Heficed Slack community. Get updates, ask questions, connect with peers.

Heficed Slack

Need support?

If you need any further help, don't hesitate to send a support request to our support team.