How do I delete my SSH key?
Linode
Linode Staff
I need to delete my SSH key. How do I do that?
2 Replies
tommydavidson
Linode Staff
Depending whether you're looking to remove an SSH key from your account, or just from your Linode, there are 2 different ways to go about this:
To delete an SSH key from your account:
- Head over to the "SSH Keys" tab of the "My Profile" section of the Cloud Manager.
- Click the 3 dots to the right of your SSH key and then click "Delete".
To delete an SSH key from your Linode:
- Login to your Linode via SSH or Lish.
- Open the file
~/.ssh/authorized_keys
with your favorite editor. Examples fornano
andvim
can be found below:
# With nano:
nano ~/.ssh/authorized_keys
# With vim:
vim ~/.ssh/authorized_keys
Whichever editor you choose, simply delete the key from the file and save.