Change SSH Key on Linux
· One min read
Changing SSH Key
- Connect to your VPS using SSH with your current SSH key.
- Edit the ~/.ssh/authorized_keys file using a text editor like nano or vim:
nano ~/.ssh/authorized_keys
- Delete the existing SSH key and add the new one.
- Save and exit the editor.