You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux – How to set up a new SSH key for Ubuntu/Oracle Linux Instance (Previous SSH is lost)

edited Apr 13, 2023 9:56AM in Linux 1 comment

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!