How to login gcp console without ssh

0 votes
I accidentally relocated the root files to a subdirectory on the Ubuntu GCP server. I am currently unable to log in using SSH. I discovered a solution on stack overflow, but it won't work in Google Cloud. How can I reverse the files without logging in? So, is there another way to access my server? Please offer an answer.
Nov 3 in GCP by Ashwini
• 2,760 points
42 views

1 answer to this question.

0 votes
Please test one of the following strategies to see if it works:

To return the files to their original folder, try interacting with the serial console and running commands there.

Put the following into action:

A. Make a snapshot of the instance's current disc.

B. Attach the fresh disc with the restored snapshot to a different instance. Reverting files on the disc should be done after mounting the disc in that situation. Using the new disc, generate a custom image, then use that image to create a new instance. Verify that the new instance has successfully been booted. The initial faulty instance can then be deleted.
answered Nov 4 by Tejashwini
• 2,860 points

Related Questions In GCP

+2 votes
1 answer

How to do SSH in GCP instance from command line?

Hi@akhtar, You can do SSH to GCP instance ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,380 points
456 views
0 votes
0 answers

ssh correct syntax to login GCP ubuntu instance

-1 I have google account that is not ...READ MORE

Mar 2 in GCP by Rahul
• 2,080 points
68 views
0 votes
1 answer

How to delete a project from Google Cloud Console

First of all, select the project you ...READ MORE

answered Apr 18, 2018 in GCP by kurt_cobain
• 9,390 points
1,977 views
0 votes
2 answers

How to install gcp in Python?

If you're accessing BigQuery in python, you ...READ MORE

answered Aug 20, 2018 in GCP by Priyaj
• 58,100 points
1,013 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

Changing Machine Instance on GCP

There is no direct method to change ...READ MORE

answered Aug 1, 2018 in GCP by kurt_cobain
• 9,390 points
232 views
0 votes
1 answer

How to change the project in GCP using CLI commands?

gcloud config set project $MY_PROJECT_ID #=> Updated property [core/project]. You ...READ MORE

answered Nov 4 in GCP by Tejashwini
• 2,860 points
41 views
0 votes
1 answer

Remote Desktop connect to Ubuntu in GCP

The instructions below can be used to ...READ MORE

answered Nov 4 in GCP by Tejashwini
• 2,860 points
43 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP