same error whether the .ssh directory exists or not. My use-case is for a not-existing directory, but if there is a workaround to create and set its ownership before uploading the file, I am fine with both cases.
Thanks for looking into this, Stéphane. I think the problem sits between the headrest and the monitor . Following your example works. The only thing that changed (and should be irrelevant) is that I tested at my desktop, not at my laptop. I went back into my bash history to try to determine what I did wrong, but was unable to find anything. Apology for the waste of time.