I was using a script to copy the contents of a folder via SCP, without copying the folder itself. Something like this:
scp -i id_rsa -P "$PORT" -r "$HOST:/folder1/folder2/." "backup"
(I'm not able to use
* because I want to include dot files, too.)
This has recently stopped working and I'm getting the following error:
scp: error: unexpected filename: .
I think the cause for this are these changes to SCP from November 2018.
Does this mean I'm no longer able to copy contents of a folder via SCP without copying the folder itself?