debian - How can you "push" files to Google Compute Engine without "Permission denied error" -


I'm trying to push files from my computer to my example in the cloud with Google Compute Engine. However, whenever I try this order:

gcutil --project = & lt; Project-id & gt; Push & lt; InstanceName & gt; & Lt; Local File & gt; & Lt; Remote-Target-paths & gt;

The problem is (it appears on the server side) Attempting pushing files is denied. This message is:

scp: / uploads: permission denied

In my case, there is a directory on the server that I created / uploaded the I 777 and Tried to use different permutation types like some others, but can this be related to this comment on the GCE Quick Start Guide?

"... push does not allow you to save to a directory that requires root permissions, which is necessary in this scenario because the default location root permissions for the above web server files are required You can change the default location somewhere in that place, which does not require root access, or open the existing file to edit as root. "

In addition to Irdeshika other not edit any permission because I think it is I'm doing can be a problem because I use the default by default. The machine is based on Debian 7

thanks

I have tried now. (GCE Debian)

  • A directory was created in root / root level (sudo mkdir upload)
  • changed the permissions of 777 (sudo chmod 777), but ownership is now Also root: root)
  • Putting the local file in the remote / upload directory

and try to check that it works well without permission:

  • For example, ports are allowed, by default it will open for port 22 ssh. (Check with console developer / browser)
  • As a non-root user, can you create a file in the directory? When you grate ssh, you must be logged in as a non-root user by default.
  • Your user permissions for example GCI

Hopefully

>

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -