Okteto VSCode extension can't connect to remote container

When I run the “Okteto: up” command on the VS Code Extension, VSCode fails to connect to the remote container with the following error:

VSCode is failing to attach because it’s not able to detect the SSH process running on the remote container. This is coming from the VSCode logs:

[11:33:53.572] > Exec server process not found
[11:33:53.572] stderr> main: line 336: ps: command not found

To fix this, update your development container image to include ps on it. For a debian-base image, it would look something like this:

RUN apt-get update && apt-get install -y procps