user16796049
user16796049

Reputation:

download a file from a linux google cloud server into my pc

I have some pdf's into linux server and I want to download them into my pc. I am trying to use somthing like this

scp username@instance_name:/path_to_this_file/XXX.pdf C:\Users\username\Desctop

but isn't working, do you have any idea how to deal with that?

Upvotes: 0

Views: 597

Answers (1)

DazWilkin
DazWilkin

Reputation: 40416

It would be helpful if you include in your question the errors you're receiving.

scp is a *nix command (not Windows) and so you likely can't use that command on Windows.

See: Transferring files to (from) Linux VMs

If you have a Linux shell (e.g. WSL) then the easiest way is probably to use gcloud compute scp which provides a wrapper around scp for you.

Upvotes: 1

Related Questions