I was able to access my VM using SSH, but uploading files was a PITA. So I opted for WinSCP which offers an SFTP visual interface to browse, edit files, and more, using a nice file explorer.

The problem was permissions. After opening some config files, I was unable to save the changes.

My solution was adding the user, to the Root Group

sudo usermod -a -G root someUser

And then grant permissions to the specific folder or files in it.

sudo chmod g+w /some/folder/*

After these steps, all the users in the “root” group will have the writing permits (RW- , RWX)

If that doesnt work, try the following…
https://ntalam.com/2023/03/15/winscp-error-2/
https://ntalam.com/2023/03/15/winscp-error/