简体   繁体   中英

google cloud platform no permission to download from SSH

when I try to download a file while in the ssh for a vm instance in the root\\ directory, it says failed. Trying to access the file, it said no permission

As Alessio said, most likely you don't have permission. There are basically three approaches you could take:

1) Change the permission of the file so whatever user you are using to SSH with has permission.

2) Use sudo (or equivalent) to get access to the file, copy it someplace where the account you are using has permissions (I like to use /tmp, especially if it isn't a shared system) and then download it from there.

3) Change your login username in SSH to something that has permission. How to do this is described at the bottom of the page at https://cloud.google.com/compute/docs/ssh-in-browser

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM