I have a similar issue, however due to the way I connect to server, I can’t figure out how to apply this solution
I connect to my server like this
ssh -p 2222 firstname.lastname@example.org
public_htlm folder is where I want to copy file to
Let’s say I want to copy logo.png to the public folder what would be the command for that?