gcloud compute ssh fails

google cloud ssh not working
error: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
error (gcloud.compute.ssh) your platform does not support ssh
gcloud compute scp
error: (gcloud.compute.ssh) could not fetch resource:
gcloud compute os-login ssh-keys add
gcp ssh to compute instance
compute osloginexternaluser

I'm using Windows Server 2008.

on issuing gcloud compute ssh instance-1 --zone us-central1-a I receive the error:

ERROR: (gcloud.compute.ssh) Could not fetch instance:
 - Invalid value 'EFOnline'. Values must match the following regular expression: '(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-
a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))'

To be clear, I did do a gcloud auth login and received a successful 'you are now authenticated' My project Name is EFOnline my instance name is : instance-1 us-central1-a (cut and paste there)

So why the weird regex error?? Thanks

Google Cloud projects have both a name and an id.

Your project ID is the string that uniquely identifies your project to Google. Project IDs show up in URI paths to cloud resources, and have to be "good" strings to put in URIs. You can find the project id for your project at the "Overview" in http://console.developers.google.com/ page.

The project name is a human-readable string that can, for example, contain spaces and some special characters.

GCloud (and most of the GCP tooling) uses project ID.

So... please try the following: Look up your project id here: http://console.developers.google.com/ then run

$ gcloud config set project <id>
$ gcloud compute ssh instance-1 --zone us-central1-a

Also, we're working on fixing the error message.

gcloud compute ssh | Cloud SDK Documentation, GCloud (and most of the GCP tooling) uses project ID. Also, we're working on fixing the error message. after that, copy given link, login with wanted account and you will be able to SSH to google cloud console with gcloud command. Groundbreaking solutions. Transformative know-how. Whether your business is early in its journey or well on its way to digital transformation, Google Cloud's solutions and technologies help chart a path to success.

Also, if you have more google cloud accounts or you are not logged in, you need first to authenticate with google cloud:

gcloud auth login

after that, copy given link, login with wanted account and you will be able to SSH to google cloud console with gcloud command.

gcloud compute ssh fails, 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. ERROR: (gcloud. Additionally, one can log into their developer console, open up your VM instance and click on the SSH widget at the top of the page, selecting View Gcloud Command. This will generate your specific string for terminal. gcloud compute --project "project_name" ssh --zone "us-central1-a" "vm_instance_name"

Additionally, one can log into their developer console, open up your VM instance and click on the SSH widget at the top of the page, selecting View Gcloud Command. This will generate your specific string for terminal.

gcloud compute --project "project_name" ssh --zone "us-central1-a" "vm_instance_name"

(gcloud.compute.ssh) Could not SSH into the instance, compute.ssh) [/usr/bin/ssh] exited with return code [255]. Google cloud console ssh behavior (gcloud  The log file includes information about all requests and responses made using the gcloud compute tool. Selecting resource names When selecting names for your resources, keep in mind that these friendly-names may be visible on support and operational dashboards within Compute Engine.

cannot ssh into a specific instance on gcloud via any method , You're getting a "permission denied" error with gcloud compute ssh, which means that SSH connectivity from your computer to the instance is  SSH access on port 22 is enabled on all Compute Engine instances by default. If you have disabled access, SSH from the browser doesn't work. If you run sshd on a port other than 22, you need to enable the access to that port by using a custom firewall rule.

Cannot SSH into my instance, gcloud compute ssh test@vh-server Updating project ssh metadata/Updated [​https://www.googleapis.com/compute/v1/projects/project-name]. Updating project​  Note: Cloud SDK uses Python 2 by default, but will soon move to Python 3 (run gcloud topic startup for exclusions and more information on configuring your Python interpreter to use a different version). Consider upgrading to Python 3 to avoid disruption in the future.

New SSH Connection failed Google Cloud VM, Has anyone experienced similar issue before? note : connection is okay with putty/local client as well as from Cloud Shell console ( gcloud compute --project "​  Hello! Having some specific issues with deploying to google compute engine. Basically I’m attempting to run a simple gcloud compute ssh - what tends to happen is either: a) gcloud cannot find the ssh key b) I get a Permission denied (publickey). Some background on a) is that I can’t add a key named google_compute_engine (CircleCI refuses to add underscores it seems). However, I can still

Comments
  • try issuing the following command: gcloud config set project efonline. After doing so, try to ssh using the command posted in your project. Btw , no capital letters are accepted in the commands.