You simply have to install vscode's code CLI on the virtual machine. Use this command:
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
tar -xf vscode_cli.tar.gz
cd vscode_cli
./code tunnel