Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleRemoving SSH Keys on a Linux Computer

The standard location for ssh key files on a Linux OS computer are in your personal /home directory in a hidden subfolder named .ssh. On most Linux machines, this would be under /home/<your_username>/.ssh/. If you have configured your keys using a non-standard key location, it is your responsibility to be aware of this location.

  1. Open your choice of command line interface (shell, terminal, console, prompt, etc)

  2. If your SSH keys are stored in the standard location, change directories to your .ssh directory for your home on the PC with the following command: cd ~/.ssh otherwise cd to the directory in which your keys are stored.

  3. Remove your old keys using the rm command: rm id_ecdsa id_ecdsa-cert.pub id_ecdsa.pub

  4. Once your old key files have been deleted, you copy over and configure your new keys as described in the linked instructions here.

...