SSH access to Homeassistant from command line sensor or shell command

https://community.home-assistant.io/t/sshing-from-a-command-line-sensor-or-shell-command/258731