Luckily, you can configure WinSCP to log in automatically from an unprivileged user into the “root ” user, by following these simply steps:
At the login window select:
1. File protocol: SCP
2. Advanced... (Advanced Site Settings)
3. Environment: SCP/Shell
4. Shell: sudo su -
5. select OK
![[Ubuntu] How to connect as root using WINSCP - Ubuntu](https://i.imgur.com/Cc7cJ9J.png)
Good luck!