venf2k / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Permission denied: 'C:\\Users\\snip\\.ssh\\google_compute_engine.pub' #720

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command [gcloud compute ssh].

C:\Users\Julien\AppData\Local\Google\Cloud SDK>gcloud compute --project 
"stratosphere-1265" ssh --zone "europe-west1-c" "instance-1"
WARNING: The private SSH key file for Google Compute Engine is not readable.
WARNING: You do not have an SSH key for Google Compute Engine.
WARNING: [C:\Users\Julien\AppData\Local\Google\Cloud 
SDK\google-cloud-sdk\bin\sdk\winkeygen.exe] will be executed to generate a key.
open C:\Users\Julien\.ssh\google_compute_engine.pub: Access is denied.
ERROR: gcloud crashed (IOError): [Errno 13] Permission denied: 
'C:\\Users\\Julien\\.ssh\\google_compute_engine.pub'

If you would like to report this issue, please run the following command:
  gcloud feedback

Trace:
googlecloudsdk\gcloud_main.py:169
 gcloud_cli.Execute()
googlecloudsdk\calliope\cli.py:654
 result = args.cmd_func(cli=self, args=ar...
googlecloudsdk\calliope\backend.py:1401
 resources = command_instance.Run(args)
surface\compute\ssh.py:165
 use_account_service=self._use_accounts_s...
googlecloudsdk\api_compute\ssh_utils.py:882
 keys_newly_added = self.EnsureSSHKeyIsIn...
googlecloudsdk\api_compute\ssh_utils.py:561
 public_key = self.GetPublicKey()
googlecloudsdk\api_compute\ssh_utils.py:638
 with open(public_ssh_key_file) as f:
IOError: [Errno 13] Permission denied: 
'C:\\Users\\Julien\\.ssh\\google_compute_engine.pub'Installation information:

Google Cloud SDK [104.0.0]

Platform: [Windows, x86_64]
Python Version: [2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit 
(Intel)]]
Python Location: [C:\Users\Julien\AppData\Local\Google\Cloud 
SDK\google-cloud-sdk\platform\bundledpython\python.exe]
Site Packages: [Disabled]

Installation Root: [C:\Users\Julien\AppData\Local\Google\Cloud 
SDK\google-cloud-sdk]
Installed Components:
  bundled-python: [2.7.10]
  bq-win: [2.0.18]
  core: [2016.03.31]
  core-win: [2016.02.05]
  gcloud: []
  windows-ssh-tools: [2016.02.22]
  gsutil: [4.18]
  bq: [2.0.24]
  gsutil-win: [4.16]
[output truncated]

Original issue reported on code.google.com by j...@corp.webedia.fr on 11 Apr 2016 at 10:30

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. Does the directory C:\Users\Julien\.ssh\ exist? Does 
the file C:\Users\Julien\.ssh\google_compute_engine.pub exist? Do you have 
permissions to write to both?

If not, can you set those permissions appropriately? Otherwise, you can run 
again with the `--ssh-key-file` flag set to point to a file which your user can 
read/write.

Original comment by z...@google.com on 11 Apr 2016 at 1:57