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?
15 Answers
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 2 If you are using Windows path, chances are that you may have folders/directories with spaces in them, and these can cause that error as well. You may resolve this by using double quotes around your path. That was my problem
pscp -<arguments> username@server:/home/folder/file "C:\your windows path" 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.txtNo 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 Carefully consider The space before the dot (.) in your above input "pscp C:\abc.php username@server: . " is considering as two arguments considering as two sources, It is deemed as an info and displays no more than 1 source is not supported.
Also Try follow this How to transfer files between linux and windows using putty
seems like filename in local destination not affecting. It can be present or empty.
This line worked for me (copying sql dump from remote to local):
pscp -pw ssh_pass -P 29477 ssh_user@ssh_host:/tmp/cafe.sql d:\temp\cafe.sql