Search code examples
windowslinuxsshscp

scp upload file: no such file or directory


I'm using ssh to connect with a linux server. I'm trying to upload a file from my own computer(windows7) to linux. When I type scp Desktop/H5.txt [email protected]:/u/private/

I got following error: scp Desktop/H5.txt [email protected]:/u/private/ Desktop/H5.txt: No such file or directory

I can guarantee the server name and the file directory is correct. It seems that scp cannot find my file on my local computer.

What's the default path? What path should I type if the file I'm intending to upload is on my desktop?

Thank you


Solution

  • winscp is a nice option to copy files from MS to *nix. Also pscp is useful. SCP have known issues when used between MS and nix. There seems to be some misunderstanding of folder structure by scp.