WinSCP Permission Denied

I’m not sure if this is a Hestia issue, Ubuntu issue or WinSCP issue but here’s the issue…

-Add user (which has sudo access) in WinSCP with a SCP file protocal
-Permission Denied when trying to create files or edit existing ones.
-Change SCP/Shell setting (advanced settings) to “Shell: sudo su-”
-Won’t connect now, error “Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended)”

If I change back to BASH (non “sudo su-”) then I can connect and browse but not make any changes.

I’m not the most advanced linux user ever so any help would be appreciated

OK, I got it. I needed to ammend the sshd_config file (/etc/ssh/sshd_conf) to apply the line “PermitRootLogin yes”

Now I can connect my sftp client with root access.

Easy once you know what you need to search for >.<