Unable to clone the code throug ssh url and Not showing commit messages

675 views
Skip to first unread message

SANOOB E.P

unread,
Aug 31, 2016, 11:22:34 PM8/31/16
to Repo and Gerrit Discussion
Hello ,

I have configured gerrit with replication plugin and updated my ssh pub key uia GUI. But I still getting authentication error while cloning the project. I could clone the code by using http url.


The problem is that when I push the changes to gerrit it will replicate to the Gitlab with out code review. And not showing commit messages in gerrit.

Can you Help on these both ssh auuthentication issue and code review

David Pursehouse

unread,
Aug 31, 2016, 11:57:56 PM8/31/16
to SANOOB E.P, Repo and Gerrit Discussion
On Thu, Sep 1, 2016 at 12:22 PM SANOOB E.P <epsa...@gmail.com> wrote:
Hello ,

I have configured gerrit with replication plugin and updated my ssh pub key uia GUI. But I still getting authentication error while cloning the project. I could clone the code by using http url.


Make sure you've added the correct key, and that ssh is actually enabled.

 

The problem is that when I push the changes to gerrit it will replicate to the Gitlab with out code review. And not showing commit messages in gerrit.


It sounds like you're pushing directly into the repository (to refs/heads/master) rather than for review (to refs/for/master).

 
Can you Help on these both ssh auuthentication issue and code review

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sanoob E P

unread,
Sep 1, 2016, 5:55:39 AM9/1/16
to Repo and Gerrit Discussion, epsa...@gmail.com
Getting following error while cloning ssh url

git clone ssh://admin@host:8080/gerrit-test
Cloning into 'gerrit-test'...
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


and getting error while pushing http url


remote: Processing changes: refs: 1, done    
remote: ERROR: missing Change-Id in commit message footer
remote: 
remote: Hint: To automatically insert Change-Id, install the hook:
remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418 admin@localhost:hooks/commit-msg ${gitdir}/hooks/
remote: And then amend the commit:
remote:   git commit --amend
remote: 
 ! [remote rejected] HEAD -> refs/for/master (missing Change-Id in commit message footer)
error: failed to push some refs to 'http://admin@host:8080/gerrit-test'

Saša Živkov

unread,
Sep 1, 2016, 6:58:22 AM9/1/16
to Sanoob E P, Repo and Gerrit Discussion, epsa...@gmail.com
On Thu, Sep 1, 2016 at 11:55 AM, Sanoob E P <san...@hifx.co.in> wrote:
Getting following error while cloning ssh url

git clone ssh://admin@host:8080/gerrit-test

Wrong port number?
The default SSH port for Gerrit is 29418.
 

IMPORTANT: This is an e-mail from HiFX IT Media Services Pvt. Ltd. Its content are confidential to the intended recipient. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. It may not be disclosed to or used by anyone other than its intended recipient, nor may it be copied in any way. If received in error, please email a reply to the sender, then delete it from your system.

Although this e-mail has been scanned for viruses, HiFX cannot ultimately accept any responsibility for viruses and it is your responsibility to scan attachments (if any).

Before you print this email or attachments, please consider the negative environmental impacts associated with printing.

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.

David Pursehouse

unread,
Sep 1, 2016, 7:06:45 AM9/1/16
to Sanoob E P, Repo and Gerrit Discussion, epsa...@gmail.com
On Thu, Sep 1, 2016 at 6:55 PM Sanoob E P <san...@hifx.co.in> wrote:
Getting following error while cloning ssh url

git clone ssh://admin@host:8080/gerrit-test

You're using the wrong port.  8080 is the HTTP port - you should be using 29418 assuming Gerrit is set up with the default SSH port.

 
Cloning into 'gerrit-test'...
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


and getting error while pushing http url


The problem and solution is given in the error message...

 

IMPORTANT: This is an e-mail from HiFX IT Media Services Pvt. Ltd. Its content are confidential to the intended recipient. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. It may not be disclosed to or used by anyone other than its intended recipient, nor may it be copied in any way. If received in error, please email a reply to the sender, then delete it from your system.

Although this e-mail has been scanned for viruses, HiFX cannot ultimately accept any responsibility for viruses and it is your responsibility to scan attachments (if any).

Before you print this email or attachments, please consider the negative environmental impacts associated with printing.

--

Sanoob E P

unread,
Sep 1, 2016, 7:28:49 AM9/1/16
to Repo and Gerrit Discussion
Getting another error now 

Cloning into 'gerrit-test'...
Unable to negotiate with 52.19.148.125 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

David Pursehouse

unread,
Sep 1, 2016, 7:47:43 AM9/1/16
to Sanoob E P, repo-discuss
Please keep the discussion on the mailing list rather than sending private messages.  (you've sent me the same mail 4 times).

There is plenty of information about this error message on the internet.  Please do some research and at least mention what you've tried to do to solve it.


On Thu, Sep 1, 2016 at 8:07 PM Sanoob E P <san...@hifx.co.in> wrote:
yes....getting another error now. can you please check.

Cloning into 'gerrit-test'...
Unable to negotiate with 52.19.148.125 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Li Qian

unread,
Mar 9, 2017, 10:21:12 AM3/9/17
to Repo and Gerrit Discussion


在 2016年9月1日星期四 UTC+8上午11:22:34,SANOOB E.P写道:

Li Qian

unread,
Mar 9, 2017, 10:21:12 AM3/9/17
to Repo and Gerrit Discussion
I have the same problem with you .
It has not yet definitely settled,and this is a link.
https://phabricator.wikimedia.org/T112025

在 2016年9月1日星期四 UTC+8下午7:28:49,Sanoob E P写道:
Reply all
Reply to author
Forward
0 new messages