SCP not working when sending files from remote to local

I'm trying to send some files from a remote server to my local computer. Here's the command I'm using on the remote server that doesn't work:

scp name@123.123.123.123:~/path/to/file.name C:\Users\Desktop\Name\file\

This didn't work, and so I tried this one as well (which also didn't work)

scp name@123.123.123.123:~/path/to/file.name name2@132.132.132.132:~/Desktop/dir

I got name2 by typing the hostname command in my local Windows command prompt.

Also, when I say "doesn't work" I mean that on the remote server, the terminal doesn't return anything and sort of freezes until I press CTRL+C or something like that.

What might be the problem. Thanks in advance.

3 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like