I have created a virtual machine instance from snapshot taken the production server. SSH key is set. But I am unable to ssh into instance both from the putty and google cloud ssh option from browser.
I have search around and find out that the issue new release which does not set the
default IP gateway for the instance. I have set the IP gateway and restart the instance but instance still showing the same error .
I have also check the Firewall rule and port 22 traffic allowed to the instance.
All other instance in same zone are working on SSH other than instance newly created using snapshot.
After looking into the logs from the serial port ifup: failed to bring up lo
Image of the error
@Patrick answer helps me get to answer, explanatory steps
#!/bin/bash
sudo useradd -G sudo user
sudo echo 'user:password' | chpasswd
auto lo
iface lo inet loopback
2) Following startup script also work for me
#!/bin/bash
sudo dhclient eth0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With