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?



(For some reason, your recent messages have not reached me at all, not
even quarantined on my ISP's web-mail system.)

On Thu, 31 Oct 2019 17:14:46 +1100, matthew green <mrg%eterna.com.au@localhost>
wrote:

> this is odd. probably some recent change is trying to protect you..
> 
> can you try eg:
> 
>    scp buildhost:'{file1,file2}' .
> 
> to copy multiple files?  ie, use shell globbing with a single word
> vs multiple words..

I don't think 'scp' understands C-shell-style globbing (w/braces,etc.).
I used something like:

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

It prompted for the password and then I got:

  scp: /path/to/{sets/text.tgz,kernel/netbsd-CUSTOM.gz}: No such file or directory


(It would be nice if it did so I wouldn't have to repeat common parts
of a long path.)

-- 
|/"\ 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