Ok…lets see…
So i created a set of keys in ubuntu and saved public key on my usb stick an my documents folder
I plugged the usb stick with the caption CONFIG as device name into the hass machine and restarted machine from power down up.
On top i installed HassOS SSH port 22222 Configurator addon from the hacs store and copied the public key into that as well and let it do its thing
now i used putty and used the created private key for authorization and connected to the hass machine ip and got greeted with a nice welcome
Via console it would look like this ssh root@IP -p 22222 -i /ssl/private_key
from there i than used this active connection to mount media folder from frigate to my nas and automated it in the configuration.yaml
shell_command:
mount_frigate_nas: ssh root@ip -p 22222 -i /ssl/private_key -o “StrictHostKeyChecking=no” -C “mkdir -p /mnt/data/supervisor/media/frigate && mount -t cifs -o username=user,password=‘password’,domain=workgroup //ip/Recordings/frigate /mnt/data/supervisor/media/frigate”
that was it…hope that helps