My HA is running in a python virtual environment not HA OS.
I just found a thread that may apply to your situatuion:
[Solved] Run ssh command in Hass.io