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, 2022 in GCP by Ashwini
• 5,430 points
635 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, 2022 by Tejashwini
• 3,820 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,460 points
1,112 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, 2022 in GCP by Rahul
• 2,120 points
345 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,350 points
2,926 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,020 points
1,728 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,350 points
671 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, 2022 in GCP by Tejashwini
• 3,820 points
1,493 views
0 votes
1 answer

Google cloud: How to list all service-accounts from all Projects in GCP

It's been noted by the commenters that ...READ MORE

answered Nov 10, 2022 in GCP by Tejashwini
• 3,820 points
1,491 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