WinSCP as the root

With the entry doas /usr/libexec/sftp-server, WinSCP starts the SFTP server with root rights. This allows additional settings to be made and configuration files to be adapted.

Requirements:

Proceed as follows:

1. Start the WinSCP client.
The login window appears.
2. Click on Advanced to open further settings.
WinSCP as the root 1:
3. Click on SFTP in the tree view on the left and enter the value
doas /usr/libexec/sftp-server in SFTP server.
WinSCP as the root 2:
4. Save the settings for the administrator account.
Then log in with the administrator account. You now have access with root rights via WinSCP.