Google VM Instant - Can't access SSH


Jeff

I've installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH

When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware proxy failed with code 4003, can anyone help me with this?

Any idea how to fix this problem?

Seri Rojoza

To fix this, you should run the command fsckon the startup disk .

To do this, you can follow these steps:

  1. Stop your VM instance (don't delete it):
gcloud compute instances stop [INSTANCE_NAME]

Before detaching the boot disk from the instance, the instance must be stopped. No need to unmount the disk.

  1. Detach the boot disk from your VM instance (usually DISK_NAME is the same as INSTANCE_NAME):
gcloud compute instances detach-disk [INSTANCE_NAME] --disk=[DISK_NAME]
  1. Create a debug virtual machine instance:
gcloud compute instances create debug-instance
  1. Attach your boot disk to debug-instance as a non-boot disk, but do not mount it:
gcloud compute instances attach-disk debug-instance --disk [DISK_NAME] --device-name debug-disk
  1. Connect to the debug instance:
gcloud compute ssh debug-instance
  1. Find the root partition of the disk, identified by the command in part1 notation ls -l /dev/disk/by-id(in this case /dev/sdb1):
$ ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Feb 13 14:56 google-debug-disk -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 13 14:56 google-debug-disk-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 11 Feb 13 14:56 google-debug-disk-part14 -> ../../sdb14
lrwxrwxrwx 1 root root 11 Feb 13 14:56 google-debug-disk-part15 -> ../../sdb15
lrwxrwxrwx 1 root root  9 Feb 13 14:56 google-persistent-disk-0 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 13 14:56 google-persistent-disk-0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Feb 13 14:56 google-persistent-disk-0-part14 -> ../../sda14
lrwxrwxrwx 1 root root 11 Feb 13 14:56 google-persistent-disk-0-part15 -> ../../sda15
lrwxrwxrwx 1 root root  9 Feb 13 14:56 scsi-0Google_PersistentDisk_debug-disk -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 13 14:56 scsi-0Google_PersistentDisk_debug-disk-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 11 Feb 13 14:56 scsi-0Google_PersistentDisk_debug-disk-part14 -> ../../sdb14
lrwxrwxrwx 1 root root 11 Feb 13 14:56 scsi-0Google_PersistentDisk_debug-disk-part15 -> ../../sdb15
lrwxrwxrwx 1 root root  9 Feb 13 14:56 scsi-0Google_PersistentDisk_persistent-disk-0 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 13 14:56 scsi-0Google_PersistentDisk_persistent-disk-0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 11 Feb 13 14:56 scsi-0Google_PersistentDisk_persistent-disk-0-part14 -> ../../sda14
lrwxrwxrwx 1 root root 11 Feb 13 14:56 scsi-0Google_PersistentDisk_persistent-disk-0-part15 -> ../../sda15
  1. Run a filesystem check on the root partition:
sudo fsck /dev/sdb1

E.g:

debug-instance:~$ sudo fsck /dev/sdb1
fsck from util-linux 2.33.1
e2fsck 1.44.5 (15-Dec-2018)
/dev/sdb1: clean, 53782/647168 files, 396250/2588667 blocks
  1. Stop the debug instance VM instance and detach the boot disk from it :
gcloud compute instances stop debug-instance
gcloud compute instances detach-disk debug-instance --disk [DISK_NAME]
  1. Reconnect the boot disk to your VM instance:
gcloud compute instances attach-disk [INSTANCE_NAME] --disk=[DISK_NAME] --boot
  1. Start your VM instance:
gcloud compute instances start [INSTANCE_NAME]
  1. Check the startup log of your VM instance via the serial port .
  2. Delete the debug instance:
gcloud compute instances delete debug-instance

Also, see the document " Removing and Reconnecting the Boot Disk and Troubleshooting VM Startup" .

Related


Google VM Instant - Can't access SSH

Jeff I have installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware

Google VM Instant - Can't access SSH

Jeff I have installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware

Google VM Instant - Can't access SSH

Jeff I've installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware p

Can't SSH to VM

Ken I have a VM installed and some custom disk images (CentOS) at work, but I can't SSH into the VM. Here are some things I've tried: [VM]$ ssh root@localhost Password: Great, ssh is using loopback. But when I try from host: ~/VirtualBox VMs% ssh -v -v -v roo

Can't SSH to VM

Ken I have a VM installed and some custom disk images (CentOS) at work, but I can't SSH into the VM. Here are some things I've tried: [VM]$ ssh root@localhost Password: Great, ssh is using loopback. But when I try from host: ~/VirtualBox VMs% ssh -v -v -v roo

Can't SSH to Google Cloud VM after installing MySQL

Josh Greenlaw I'm trying to setup a small blog server on Google Cloud Platform using a free f1.micro instance. I'm using Ubuntu 20.04 LTS as the base image (Ubuntu is the only Linux distribution I'm completely familiar with), although I tried 20.10. Everything

Can't SSH to Google Cloud VM after installing MySQL

Josh Greenlaw I'm trying to setup a small blog server on Google Cloud Platform using a free f1.micro instance. I'm using Ubuntu 20.04 LTS as the base image (Ubuntu is the only Linux distribution I'm completely familiar with), although I tried 20.10. Everything

Can't SSH to Google Cloud VM after installing MySQL

Josh Greenlaw I'm trying to setup a small blog server on Google Cloud Platform using a free f1.micro instance. I'm using Ubuntu 20.04 LTS as the base image (Ubuntu is the only Linux distribution I'm completely familiar with), although I tried 20.10. Everything

Can't SSH to Google Cloud VM after installing MySQL

Josh Greenlaw I'm trying to setup a small blog server on Google Cloud Platform using a free f1.micro instance. I'm using Ubuntu 20.04 LTS as the base image (Ubuntu is the only Linux distribution I'm completely familiar with), although I tried 20.10. Everything

Can't SSH to Google Cloud VM after installing MySQL

Josh Greenlaw I'm trying to setup a small blog server on Google Cloud Platform using a free f1.micro instance. I'm using Ubuntu 20.04 LTS as the base image (Ubuntu is the only Linux distribution I'm completely familiar with), although I tried 20.10. Everything

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH to Azure VM

Samas Agarwal I have an Ubuntu VM (resource group, not Classic VM) on Azure and it's all available. I recently tried to SSH into a VM using Putty, but I couldn't. I get the error: Network Error: Connection Timed out. I've made sure port 22 is open for SSH in t

Can't SSH into Azure Windows Server VM

Angelson I created a new virtual machine in Azure. (Windows Server 2016 Datacenter Server Core) The VM creation process enabled me to enable SSH access (and it did): Image of VM Creation Wizard However, I found myself unable to establish an SSH connection to W

Can't SSH to Debian VM from Ubuntu

burakcan.yurttutan I can't connect to Debian 9 Server from Ubuntu OS. Debian 9 is a Virtualbox VM. I modified sshd_configand added new user server1on deb server . The Openssh server is setup on the deb server. Deb server is listening on 0.0.0.0 and -p 22. Alth

Bluemix VM can't connect via SSH

Howard Liu As my thread states, I can't connect to the server via ssh, but I can connect to the server via Horizon. My region is USA. I tried CentOS 7 and Ubuntu 14.10 provided by Bluemix. I use a security group to enable all data (either ipv4 or ipv6, whateve

Can't SSH into Azure Windows Server VM

Angelson I created a new virtual machine in Azure. (Windows Server 2016 Datacenter Server Core) The VM creation process enabled me to enable SSH access (and it did): Image of VM Creation Wizard However, I found myself unable to establish an SSH connection to W

I can't SSH into my Ubuntu VM

Unais221 So I went through the notes and tried to install an Oracle virtual machine that could run Ubuntu. Also, I'm having issues with SSH and the long details of the setup process are a bit vague. But I think I did it correctly, mainly setting the sshd_confi

Can't SSH into Azure Windows Server VM

Angelson I created a new virtual machine in Azure. (Windows Server 2016 Datacenter Server Core) The VM creation process enabled me to enable SSH access (and it did): Image of VM Creation Wizard However, I found myself unable to establish an SSH connection to W

Can't SSH to Debian VM from Ubuntu

burakcan.yurttutan I can't connect to Debian 9 Server from Ubuntu OS. Debian 9 is a Virtualbox VM. I modified sshd_configand added new user server1on deb server . The Openssh server is setup on the deb server. Deb server is listening on 0.0.0.0 and -p 22. Alth

Bluemix VM can't connect via SSH

Howard Liu As my thread states, I can't connect to the server via ssh, but I can connect to the server via Horizon. My region is USA. I tried CentOS 7 and Ubuntu 14.10 provided by Bluemix. I use a security group to enable all data (either ipv4 or ipv6, whateve

Can't SSH into Azure Windows Server VM

Angelson I created a new virtual machine in Azure. (Windows Server 2016 Datacenter Server Core) The VM creation process enabled me to enable SSH access (and it did): Image of VM Creation Wizard However, I found myself unable to establish an SSH connection to W

I can't SSH into my Ubuntu VM

Unais221 So I went through the notes and tried to install an Oracle virtual machine that could run Ubuntu. Also, I'm having issues with SSH and the long details of the setup process are a bit vague. But I think I did it correctly, mainly setting the sshd_confi

Can't SSH into Vagrant VM (without using vagrant ssh)

Sloan Ahrens In preparation for adapting the fabric deployment script for use by a local Vagrant VM, I'm trying to convince the VM to let me SSH into it without using SSH vagrant ssh. I keep getting errors. I've tried many different combinations of settings, b

Can't SSH into Vagrant VM (without using vagrant ssh)

Sloan Ahrens In preparation for adapting the fabric deployment script for use by a local Vagrant VM, I'm trying to convince the VM to let me SSH into it without using SSH vagrant ssh. I keep getting errors. I've tried many different combinations of settings, b

Can't SSH into Vagrant VM (without using vagrant ssh)

Sloan Ahrens In preparation for adapting the fabric deployment script for use by a local Vagrant VM, I'm trying to convince the VM to let me SSH into it without using SSH vagrant ssh. I keep getting errors. I've tried many different combinations of settings, b