If you can do ssh but not scp

scp **:/var/www/html/****
permission denied

In this case, the server directory settings are usually wrong.
Temporary measures include
scp **:.
and then mv to the top level of the server will be fine.