"More than one remote source not supported" when copying files via pscp
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5
--
Chapters
00:00 &Quot;More Than One Remote Source Not Supported&Quot; When Copying Files Via Pscp
00:27 Accepted Answer Score 10
01:00 Answer 2 Score 3
01:23 Answer 3 Score 0
01:56 Answer 4 Score 0
02:27 Answer 5 Score 0
02:45 Thank you
--
Full question
https://superuser.com/questions/511755/m...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #windows
#avk47
ACCEPTED ANSWER
Score 10
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
ANSWER 2
Score 3
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"
ANSWER 3
Score 0
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
ANSWER 4
Score 0
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
ANSWER 5
Score 0
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