has anyone figured out how to create users over ssh (key based) .. i think what's missing is the -password field 🙂
Tried a few things but it keeps prompting for a password;
security login create -user-or-group-name test -application ssh -authmethod password
Please enter a password for user 'test':
Something similar to 'security login create -user-or-group-name test -application ssh -authmethod password -password somepassword
this is required for an ansible playbook, not bash