google-compute-engine

Download Directory from Google Cloud Compute Engine


I am trying to download a full recursive directory from Google Cloud Platform using the trial edition of the platform. I assumed that the "Download File" option under the SSH dropdown settings would work, but it does not, providing only a "Failed" message on the window.

Upon trying to look up the answer, I found people mentioning downloading files from storage buckets and such - that is not what this is and to my knowledge I don't have access to those on a trial edition of GCP. I have a compute engine running and can SSH into it and I am looking to download a full recursive directory from it.

Thank you for any advice that you can offer me!


Solution

  • If you already have SSH access, you can use the scp command to copy files(assuming it is available on the system to which you want to copy the files).

    scp -r username@server:/path/to/your/directory /local/destination
    

    Another option is to use SFTP if scp is not available. Various clients are available for this for various operating systems.

    Either of these options will transfer the files over SSH without any additional configuration required on the server(compute instance in your case).