I have some files on my laptop which I want to copy them on a remote cluster. To this end, I use PuTTy to SSH the remote cluster. Then to copy files, I use PuTTy terminal and after logging to the remote system, I write the below instruction,
scp -r ~/Desktop/AFU/ username@host:~/SVM
aiming copy all files in folder C:Users\name\Desktop\AFU
in my laptop to a folder named SVM
on the remote cluster.
However, it does not work and I get the error:
/home/username/Desktop/AFU: No such file or directory.
Could you please help me? The operating system on my laptop is Windows 8.1.
~/Desktop/AFU/
. Why notC:\Users\name\Desktop\AFU
? Does Putty replace~
with your home directory? Or are you using CygWin? BTW, tell us (by editing your question, not in the comments) what does not work. What is the error message? – xhienne Jan 14 '17 at 12:01~
is correctly resolved on windows? – Timothy Truckle Jan 14 '17 at 12:03~
I am not sure what it does. After running the command I get the error:/home/username/Desktop/AFU: No such file or directory
. Also, when I write the complete address, i.e.C:\Users\name\Desktop\AFU
I get an error which saysssh could not resolve hostname C: Name or service not found
. – user4704857 Jan 14 '17 at 12:13