Oracle Cloud has no public key/private key/SSH KEY, and cannot log into VPS

Oracle Cloud has no public key/private key/SSH KEY, and cannot log into VPS

Oracle Cloud's free VPS is actually pretty good. Here's how to fix the problem of not being able to log into the VPS without a public key/private key/SSH KEY.

1. On the free VPS that cannot access the system, shut down and detach the boot volume

2. Create a new VPS and add the boot volume separated above

Don't select ISCSI below, select PARAVIRTUALIZED

3. Log in to the newly opened VPS. It is best to restart it and use the root user

 sudo -i

Check if the hard disk is mounted

 fdisk -l


Then, copy the entire hard drive to the non-bootable disk

 dd if=/dev/sda of=/dev/sdb

It takes a long time, probably about 2 hours.

To prevent network problems, you can use screen -S copy so that you don't have to worry about SSH being interrupted.

4. On the new machine, separate the boot disk

5. Go to the VPS that cannot be turned on and mount the boot disk

In this way, you can have fun playing the machine.

Reference: https://www.hostloc.com/thread-593802-1-2.html, https://www.hostloc.com/thread-593924-1-1.html

<<:  SiliconHouse: $39/month/E3-1230v2/32GB memory/2TB hard drive/20TB traffic/1Gbps bandwidth/Phoenix

>>:  SoyouStart: €25.99/month/E3-1225v2/16GB memory/6TB hard drive/unlimited traffic/250Mbps/France

Recommend

$4.95/month/unlimited space/unlimited traffic web hosting - GreenGeeks

GreenGeeks is a US hosting company that has 13 ye...

inmotionhosting host introduction

Website address: http://inmotionhosting.com/ It l...

Webtropia: €30/month/D-1540/64GB memory/2TB space/unlimited traffic/Germany

Webtropia, owned by myLoc, is now offering 24% of...

Introduction to American virtual host Webhostingpad

Click here to enter the Webhostingpad official we...

VPS.Net: $5/month/512MB/20GB SSD/1TB traffic/XEN/Los Angeles

VPS.Net's VPS has launched four new data cent...

OdIndex: OneDrive list program based on PHP

OdIndex Features : Automatically renew the token ...

AliDns: Permanent free DNS cloud resolution service provided by Alibaba Cloud

This is an action taken by HiChina after it was a...