The venv gets correctly activated. The issue is that I need to source a setup file after the venv gets activated. If I were to do it manually on the remote I would do:
Thank you for this. This works, but I also want to change the working directory to mypath. I have tried using cd in the venv-activate but that breaks. I also tried using the remoteCommand in my ssh config, but that wont’ work either.