Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: scp protocol error on multiple file copy?



On Wed, 30 Oct 2019, John D. Baker wrote:

> One machine can't use this due to network load, but in the past, I
> used a command line like:
> 
>   $ scp -p buildhost:"/path/to/sets/[bem]* /path/to/sets/text.tgz /path/to/kernel/netbsd-CUSTOM.gz" .

A single path with glob characters:

  $ scp -p buildhost:/path/to/sets/[bem]* .

works.  A compound path:

  $ scp -p buildhost:"/path/to/sets/text.tgz /path/to/kernel/netbsd-CUSTOM.gz" .

fails with:

  protocol error: filename does not match request

Multiple sources each prefixed with the source host:

  $ scp -p buildhost:/path/to/sets/text.tgz buildhost:/path/to/kernel/netbsd-CUSTOM.gz .

works, but prompts for the source host's user's password each time.


Anyone else run into this?

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index