How can I copy file from Windows to Ubuntu?

"More than one remote source not supported" when copying files via pscp

  • I need to copy a file from Windows to Ubuntu 12.04. I have tried using the code below: pscp C:\abc.php username@server: . But it shows an error: More than one remote source not supported How to solve this?

  • Answer:

    Because you specify more than one remote source. username@server: . ← the dot here (which supposedly means your working directory) doesn't belong there. You cannot reference your working directory on another machine like this, and since there's a space between username@server and ., it'll be interpreted as two arguments. Instead, specify an absolute path: pscp C:\abc.php username@server:/home/user/foo

Jaimin Sutariya at Super User Visit the source

Was this solution helpful to you?

Other answers

I just ran into the "more than one remote source not supported" error, and it turned out it was because I was giving a file name in the destination. I'm running on a Windows 7 box, trying to bring down a file from a Linux box. I tried: pscp -l myusername IPADDRESS:/home/myfolder/myfilename.txt C:\Users\myuserfolder\myfilename.txt No good. Once I removed the filename in the target, it worked fine. This worked: pscp -l myusername IPADDRESS:/home/myfolder/myfilename.txt C:\Users\myuserfolder

Laura

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.