Perhaps its late while I’m reading the forums, but I have been able to access the openhab user account from the CLi as I needed to push or pull ssh keys to systems so I can issue suspend/hibernate commands from OH to the remote systems to avoid password prompts.
sudo -u openhab /bin/bash
Not suggesting to go about leveraging this for VS Code purposes, just that it can be done for SSH with executecommandline needs.