I migrated the vm from libvirt to Google Cloud Platform using Cloudendure. The initial sync is complete and is in Data Replication stage from over a week. Once the VM is launched using test mode and try to putty using ssh it throws
Connection Refused exited with error code 255.
The firewall rule in GCP and the machine allows port 22 for incoming connections.
SSH key is also updated properly in metadata section and also in authorized_keys in the machine.
Steps tried:
- Followed this article to install Linux Guest OS.
- Generated SSH key using
ssh keygen -t rsa -C ""
in gcloud shell.
I cannot ssh into the linux environment. Appreciate the help
Operating System: Ubuntu 18.04 LTS x64
Best Answer
This is a workaround that will help you to fix your issue and you have to follow these steps:
Then inside the instance you need to fetch which is not working by Validate the Guest Environment :
First: look in your serial console if these line below are listed :
Second: Verify if the package for the guest Environment is installed run the command in your serial output
It should list the below line :
Third:you need to verify if all the services for the guest environment are running by running this command :
It should list the below line :
If some package on the Guest Environment is missing or not running tthen you should install it following the documentation.