Help wanted: SSH to remote machine to shutdown remote machine

ok, so i figured out that i am running hassos and that this all inside docker. I still need to figure out how ssh runs and connects to other machines.

EDIT - logs are not showing any errors:

core-ssh:/config# tail -f home-assistant.log | grep ssh
2018-12-07 13:34:34 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1860222896] Received {‘type’: ‘call_service’, ‘domain’: ‘switch’, ‘service’: ‘turn_on’, ‘service_data’: {‘entity_id’: ‘switch.test_ssh’}, ‘id’: 15}
2018-12-07 13:34:34 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=switch, service=turn_on, service_data=entity_id=switch.test_ssh, service_call_id=2ad0cec039924e9093718200accf57c4>

2018-12-07 13:58:50 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=switch, service=turn_off, service_data=entity_id=switch.test_ssh, service_call_id=d01c0f2c9ab049989d18f75ab283d40c>
2018-12-07 13:58:50 INFO (SyncWorker_18) [homeassistant.components.switch.command_line] Running command: /usr/bin/ssh -i /config/ssh/andrew-priv-openssh -o StrictHostKeyChecking=no freenas ‘/sbin/shutdown -p now’
2018-12-07 13:58:50 ERROR (SyncWorker_18) [homeassistant.components.switch.command_line] Command failed: /usr/bin/ssh -i /config/ssh/andrew-priv-openssh -o StrictHostKeyChecking=no freenas ‘/sbin/shutdown -p now’