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.
I got name2 by typing the hostname command in my local Windows command prompt.
: you need your user name, not the machine's hostname. – terdon Oct 24 '19 at 14:33