Creating user in gerrit through ssh
<p>I am running gerrit on dockers successfully until now. The next step I want to achieve is is as follows: </p>

<p>I have a service running and if the the service passes I want to to review the code as +1 and 0 if it fails. But to review code I need a user, for this I need to create a user account once the gerrit instance is launched, then add this user to the reviewer list for that project, then make this user review the code based on whether the service passes or not.</p>

<p>I am able to review the code using the below command:</p>

<pre><code>ssh -p 29418 host_ip gerrit review --code-review +2 commit_id
</code></pre>

<p>But I'm not able to create a user and add the user to the list of reviewers for that project. I am not getting any errors but am not able to find out whether the command worked or not as I'm not able to find any new users added. I used the below command:</p>

<pre><code>cat ~/.ssh/id_watcher.pub | ssh -p 29418 host_ip gerrit create-account --ssh-key - watcher
</code></pre>

<p>My gerrit instance is LDAP configured. Am I going in the right direction? What am I doing wrong?</p>