Forums | Mahara Community
Developers
/
stuck trying to add commit-msg hook
27 October 2014, 13:06
I tried many times, created new accounts on Gerrit, Gitoriuos, changed keys many times, searched for hours but keep getting stuck here:
dirk@dirk-System-Product-Name:/var/www/mahara$ scp -p -P 29418 [email protected]:hooks/commit-msg .git/hooks/
Agent admitted failure to sign using the key.
Permission denied (publickey).
Any help is appreciated.
27 October 2014, 16:42
Hi Dirk,
I've not experienced that error before but this might help you: https://help.github.com/articles/error-agent-admitted-failure-to-sign/
It sounds like you are experiencing the same sort of problem
Cheers
Robert
29 October 2014, 15:29
Hi Dirk,
Another thing you can do to test whether your setup is correct, is this:
ssh reviews.mahara.org -p 22418
If your SSH is set up correctly, you should get this response:
**** Welcome to Gerrit Code Review ****
Hi Aaron Wells, you have successfully connected over SSH.
Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://[email protected]:29418/REPOSITORY_NAME.git
Connection to reviews.mahara.org closed.
If it doesn't work, you can add the "-v" tag to get verbose output from SSH, which may give a clearer indication of where it's failing. And you can expand that to "-vv" and "-vvv" to get even more verbosity!
But I think that sshagent thing that Robert linked to is probably the problem. I vaguely recall having to fix something relating to that on my laptop a while back when I was having git problems.
Cheers,
Aaron
30 October 2014, 15:18
Thanks Robert and Aaron,
I can successfully connect to github using
ssh -T [email protected]
as described here: https://help.github.com/articles/generating-ssh-keys/
When I run
ssh reviews.mahara.org -p 22418
I get 'ssh: connect to host reviews.mahara.org port 22418: Connection timed out'
I'll figure it out one of these days. Thanks again.
31 October 2014, 14:53
Sorry, that's a typo! It should be 29418, not 22418.
The same port number you see in the git commands that gerrit generates, eg: git fetch ssh://[email protected]:29418/mahara refs/changes/74/3874/3 && git checkout FETCH_HEAD
Cheers,
Aaron