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 email@example.com
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?