Oracle Linux – How to set up a new SSH key for Ubuntu/Oracle Linux Instance (Previous SSH is lost)
APPLIES TO:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
GOAL:
This document describes how to create a new SSH key in case the previous SSH key had been lost.
SOLUTION:
Follow below steps:
1) Ubuntu/Oracle Linux instance needs to be stopped
2) Once instance is stopped detach Boot Volume (BV) from the instance
3) Create a new Instance (Oracle Linux 8 is preferable) and attach Boot Volume from the Ubuntu Instance
4) Select Paravirtualized in attachment Type section
5) Once completed. Login to the new instance and execute below commands as root user
$ lsblk $ mkdir -p /mnt/tempUbuntu $ mount /dev/sdb1 /mnt/tempUbuntu (Make sure /dev/sdb1 is the right partition holding /home) $ cd /mnt/tempUbuntu/home/ubuntu/.ssh
Tagged:
0