After installing the openssh server for windows 10 through the "additional features", one must go through extra hoops to actually make it work (...) Windows SSH: Permissions for 'private-key' are too open:
:: # Remove Inheritance :: Cmd /c Icacls %Key% /c /t /Inheritance:d
See also: Troubleshooting Steps.
Once that's working properly, I can start a shadow server on the
Winlogon secure desktop using psexec:
windows 10 test@DESKTOP-Q4IVN7P C:\Users\Windows 10 Test>psexec -x -s "C:\\Program Files\\Xpra\\xpra.exe" "shadow" "--bind-tcp=0.0.0.0:10000"
Problem with this is that the shadow server stops working (blank screen) as soon as we login. But this may still help with #1527.
If the user is logged in, then we need:
psexec -i 1 "C:\\Program Files\\...
quser to locate the session id)
It sort of works: the xpra process is started and we can connect to it (
xpra info etc), but the screen dimensions are bogus so we can't
xpra attach to it.
xpra_cmd.exe or clicking on
About in the shadow systray, the
about windows are all black so clearly something is still missing to access the GUI session properly.
Some problems with using psexec:
Installation paths issues: maybe generate a "run-xpra" script in
(that way we don't have to assume xpra is installed in
This can also take care of invoking the paexec wrapper.
(but needs to be done as a post-install step to ensure it is always present?)
paexec(paramiko backend only)
It almost works using:
xpra shadow "ssh://user:password@IP/" --remote-xpra=xpra.exe -d ssh --bind-tcp=0.0.0.0:10000
the shadow server starts and we can connect to it via TCP.
But the fdproxy errors out because stdin and stdout are not connected. (we run
Xpra.exe which is a GUI process).
Xpra_cmd.exe does not help: the CMD window shows up, but the stdin and stdout pipes are silent..
(paexec is not bundled in by default since this does not work fully yet)
xpra shadow "ssh://user:password@IP/" -d ssh (..) Authentication (password) successful! (..) run_test_command('which $XDG_RUNTIME_DIR/xpra/run-xpra') (..) using 'C:\\Program Files\\Xpra\\Xpra_cmd.exe' channel exec_command("C:\\Program Files\\Xpra\\Xpra_cmd.exe" "_proxy_shadow_start" "--password=password" "--debug=ssh")
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2711