Not sure what to tell you, it works for me. It doesn’t matter which SSH you use, its all ZSH in the end.
config $ echo "alias lg='tail -f /config/home-assistant.log'" > setalias.sh
config $ chmod 0755 setalias.sh
config $ ./setalias.sh
config $ lg
2021-05-14 14:00:43 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor room-assistant garage-status-cluster-size, sending update
2021-05-14 14:00:43 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('sensor', 'room-assistant garage-status-cluster-size') '{'payload_available': 'online', 'payload_not_available': 'offline', 'name': 'garage Cluster Size', 'device': {'sw_version': '2.16.1', 'identifiers': '0000000017023470', 'name': 'garage', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation'}, 'unique_id': 'room-assistant-garage-status-cluster-size', 'state_topic': 'room-assistant/sensor/garage-status-cluster-size/state', 'json_attributes_topic': 'room-assistant/sensor/garage-status-cluster-size/attributes', 'availability_topic': 'room-assistant/sensor/garage-status-cluster-size/status', 'icon': 'mdi:server', 'unit_of_measurement': 'instances', 'platform': 'mqtt'}'
2021-05-14 14:00:43 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: sensor.garage_cluster_size
2021-05-14 14:00:43 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor room-assistant family-room-status-cluster-leader, sending update
2021-05-14 14:00:43 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('sensor', 'room-assistant family-room-status-cluster-leader') '{'payload_available': 'online', 'payload_not_available': 'offline', 'name': 'family_room Cluster Leader', 'device': {'sw_version': '2.16.1', 'identifiers': '00000000fe22e69f', 'name': 'family_room', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation'}, 'unique_id': 'room-assistant-family-room-status-cluster-leader', 'state_topic': 'room-assistant/sensor/family-room-status-cluster-leader/state', 'json_attributes_topic': 'room-assistant/sensor/family-room-status-cluster-leader/attributes', 'availability_topic': 'room-assistant/sensor/family-room-status-cluster-leader/status', 'icon': 'mdi:account-group', 'platform': 'mqtt'}'
2021-05-14 14:00:43 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: sensor.family_room_cluster_leader
2021-05-14 14:00:44 INFO (MainThread) [homeassistant.components.mqtt.discovery] Component has already been discovered: sensor room-assistant garage-status-cluster-leader, sending update
2021-05-14 14:00:44 INFO (MainThread) [homeassistant.components.mqtt.mixins] Got update for entity with hash: ('sensor', 'room-assistant garage-status-cluster-leader') '{'payload_available': 'online', 'payload_not_available': 'offline', 'name': 'garage Cluster Leader', 'device': {'sw_version': '2.16.1', 'identifiers': '0000000017023470', 'name': 'garage', 'model': 'Raspberry Pi Zero W Rev 1.1', 'manufacturer': 'Raspberry Pi Foundation'}, 'unique_id': 'room-assistant-garage-status-cluster-leader', 'state_topic': 'room-assistant/sensor/garage-status-cluster-leader/state', 'json_attributes_topic': 'room-assistant/sensor/garage-status-cluster-leader/attributes', 'availability_topic': 'room-assistant/sensor/garage-status-cluster-leader/status', 'icon': 'mdi:account-group', 'platform': 'mqtt'}'
2021-05-14 14:00:44 INFO (MainThread) [homeassistant.components.mqtt.mixins] Ignoring unchanged update for: sensor.garage_cluster_leader
config $