I am passing a very hard time connecting VM instances on google cloud. Everything was fine, suddenly the VM is refused to connect, I can't get it to be fixed.
I have run this command in cloud shell :
gcloud beta compute ssh ceunix-ubuntu-server-instance -- -vvv
and get the following message:
Welcome to Cloud Shell! Type "help" to get started. Your Cloud Platform project in this session is set to ceunix-wordpress-316703. Use “gcloud config set project [PROJECT_ID]” to change to a different project. ceunixcorporation@cloudshell:~ (ceunix-wordpress-316703)$ gcloud beta compute ssh ceunix-ubuntu-server-instance -- -vvv Did you mean zone [asia-southeast1-b] for instance: [ceunix-ubuntu-server-instance] (Y/n)? n No zone specified. Using zone [us-central1-a] for instance: [ceunix-ubuntu-server-instance]. Writing 3 keys to /home/ceunixcorporation/.ssh/google_compute_known_hosts Updating project ssh metadata...⠶Updated [https://www.googleapis.com/compute/beta/projects/ceunix-wordpress-316703]. Updating project ssh metadata...done. Waiting for SSH key to propagate. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:PIrntDXiIhagDRyAki+F9hgNMxtXDhbAUy2A+VsffSE. Please contact your system administrator. Add correct host key in /home/ceunixcorporation/.ssh/google_compute_known_hosts to get rid of this message. Offending RSA key in /home/ceunixcorporation/.ssh/google_compute_known_hosts:3 remove with: ssh-keygen -f "/home/ceunixcorporation/.ssh/google_compute_known_hosts" -R "compute.906058796356615757" ECDSA host key for compute.906058796356615757 has changed and you have requested strict checking. Host key verification failed. ERROR: (gcloud.beta.compute.ssh) Could not SSH into the instance. It is possible that your SSH key has not propagated to the instance yet. Try running this command again. If you still cannot connect, verify that the firewall and instance are set to accept ssh traffic. ceunixcorporation@cloudshell:~ (ceunix-wordpress-316703)
Note: I have checked the firewall rule, it allows port 22 on all instance networks. Then, I have cleared all public keys from Computing instance > Metadata Section, then adding a new key. it not works.
Only SSH though the browser is working. If I choose to Compute Engine > VM instances > Choose a VM and SSH menu > Open in the browser window using provided private SSH key and then choose my own private ppk key also never let me allow!
Here is the error message > You cannot connect to the VM instance because of an unexpected error. Wait a few moments and then try again.
So, what I can do? I have three Ubuntu instances. All is refusing to connect. please help me.