command line – How do I copy local files to remote server where remote server needs root access with scp?

I am connecting to a server (ssh user@server) where I need to do following to act as root user

dzdo su -

Without su - I can’t copy any file on this server and have only read-only access.

Now I want to copy a folder from my local to this remote server. This is what I tried when in local bash terminal and as expected it gives me Permission denied error. (as follows).

Any idea what I should do here?


**Copy from local directory to remote server **

`(base) Username@Local_Computer lsp % scp -r /Users/Username/Downloads/lsp  username@server:/srv/path/directory`

Error I get

scp: /srv/path/directory: Permission denied