Difference between revisions of "Gsutil config -e"
Jump to navigation
Jump to search
(Created page with "{{lc}} -e Prompt for service account credentials. This option requires that ``-a`` is not set. == See also == * {{gsutil}} Category:GCP") |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | |||
+ | [[gsutil config]] -e | ||
+ | -e Prompt for [[service account]] credentials. This option requires that ``-a`` is not set. | ||
+ | |||
+ | |||
+ | |||
+ | [[gsutil config]] -e | ||
+ | This command will create a boto config file at [[$HOME/.boto]] | ||
+ | containing your credentials, based on your responses to the following questions. | ||
+ | What is the full path to your [[private key]] file? /path/to/your/[[gcloud-auth.json]] | ||
+ | |||
+ | Your private key file is readable by people other than yourself. | ||
+ | This is a security risk, since anyone with this information can use your service account. | ||
+ | |||
+ | Would you like gsutil to change the file permissions for you? (y/N) N | ||
+ | |||
+ | You have chosen to allow this file to be readable by others. | ||
+ | If you would like to fix this yourself, consider running: | ||
+ | "sudo chmod 400 </path/to/key>" for improved security. | ||
+ | |||
+ | Please navigate your browser to https://cloud.google.com/console#/project, | ||
+ | then find the project you will use, and copy the Project ID string from the | ||
+ | second column. Older projects do not have Project ID strings. For such projects, | ||
+ | click the project and then copy the Project Number listed under that project. | ||
+ | |||
+ | What is your project-id? your-project-id | ||
+ | |||
+ | gsutil developers rely on user feedback to make improvements to the | ||
+ | tool. Would you like to send anonymous usage statistics to help | ||
+ | improve gsutil? [y/N] | ||
+ | |||
+ | Boto config file "/Users/YOUR_USER/[[.boto]]" created. If you need to use a proxy | ||
+ | to access the Internet please see the instructions in that file. | ||
+ | |||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[$HOME/.boto]]</code> | ||
+ | * <code>[[gsutil ls]]</code> | ||
+ | * [[Service account]] keys | ||
+ | * <code>[[gcloud auth activate-service-account]]</code> | ||
== See also == | == See also == | ||
+ | * {{gsutil config}} | ||
* {{gsutil}} | * {{gsutil}} | ||
[[Category:GCP]] | [[Category:GCP]] |
Latest revision as of 21:07, 25 July 2022
gsutil config -e -e Prompt for service account credentials. This option requires that ``-a`` is not set.
gsutil config -e This command will create a boto config file at $HOME/.boto containing your credentials, based on your responses to the following questions. What is the full path to your private key file? /path/to/your/gcloud-auth.json Your private key file is readable by people other than yourself. This is a security risk, since anyone with this information can use your service account. Would you like gsutil to change the file permissions for you? (y/N) N You have chosen to allow this file to be readable by others. If you would like to fix this yourself, consider running: "sudo chmod 400 </path/to/key>" for improved security. Please navigate your browser to https://cloud.google.com/console#/project, then find the project you will use, and copy the Project ID string from the second column. Older projects do not have Project ID strings. For such projects, click the project and then copy the Project Number listed under that project. What is your project-id? your-project-id gsutil developers rely on user feedback to make improvements to the tool. Would you like to send anonymous usage statistics to help improve gsutil? [y/N] Boto config file "/Users/YOUR_USER/.boto" created. If you need to use a proxy to access the Internet please see the instructions in that file.
Related[edit]
See also[edit]
Advertising: