I would like to send a ZFS dataset to a Mac running OpenZFS. I have been able to replicate a FreeNAS dataset to a Mac running OpenZFS using the terminal. I did this using SSH password authentication. I'd like to setup a FreeNAS (FreeBSD based NAS Server) replication task for this, but I'm getting permission denied errors since I don't have an SSH key setup.
I have tried setting up a Replication task in the FreeNAS GUI, pointing to the IP of my remote Mac, then pressing the SSH Key Scan button, and it did populate a key. I tried saving that key text to a file, and using the ssh-add
command on the remote Mac to add it, but it keeps asking for a password, which I don't know. If I leave blank, it just ends the command (or maybe adds it but I still fails).
What steps I would need to take to use an SSH key between my FreeNAS server and my remote Mac running OpenZFS? I found information on the web on how to generate an SSH key on FreeNAS but I don't want to mess up my existing replication tasks. Perhaps it won't, but I don't want to risk bringing down all my existing replications while I attempt things I've never done.