If you attempt to use "gerrit gsql" by connecting with the magic PeerDaemonUser credentials - that is, using the server's host key as the ssh key and the username "Gerrit Code Review" - the ssh command will hang, and a stack trace is dumped into the error_log (attached).
I discovered this while attempting to use the "Trivial Rebase Detection" hook script from here: https://www.codeaurora.org/xwiki/bin/QAEP/Gerrit
This hook uses the Peer user (apparently it expects to have some ssh configuration to use the ssh host key as well).
Affected Version: 2.8.1
What steps will reproduce the problem?
1. Install Gerrit 2.8.1, including Bouncy Castle
2. Start with "gerrit.sh start"
3. From the install directory's etc/ directory, run
ssh -i ssh_host_rsa_key -l 'Gerrit Code Review' -p 29418 localhost gerrit gsql
What is the expected output? What do you see instead?
I expect the gsql prompt. Instead I get no output from the ssh command; it hangs.