Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gcloud cloud-shell ssh key file argument seems to be unusable

The man page for "gcloud cloud-shell ssh" says that I can specify a specific ssh key to log in. However, in the current CLI, this argument doesn't take a value.

 

```
--ssh-key-file
The path to the SSH key file. By default, this is
~/.ssh/google_compute_engine.
```

 


Attempts to use it causes an expected cli failure.

 

```
$ gcloud cloud-shell ssh --authorize-session --project myproject --ssh-key-file ~/.ssh/id_rsa
ERROR: (gcloud.cloud-shell.ssh) unrecognized arguments: /Users/sandip/.ssh/id_rsa

To search the help text of gcloud commands, run:
gcloud help -- SEARCH_TERMS
```

 

1 2 304
2 REPLIES 2