<div dir="ltr">Hi Shmuel,<div><br></div><div>The Gerrit system has two independent SSH daemons - one for OS management and another for use with Git. You may notice in your output that ports you are connecting to are different. Please use port 29418 for git pulls over SSH. Tell me if that helps.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 27, 2017 at 4:35 PM, Shmuel Melamud <span dir="ltr">&lt;<a href="mailto:smelamud@redhat.com" target="_blank">smelamud@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
Today I found that git pull from Gerrit works on my laptop by doesn&#39;t<br>
work on my VM in RHEV-TLV. Both the laptop and the VM have their<br>
public SSH keys registered on <a href="http://gerrit.ovirt.org" rel="noreferrer" target="_blank">gerrit.ovirt.org</a> and both resolve<br>
<a href="http://gerrit.ovirt.org" rel="noreferrer" target="_blank">gerrit.ovirt.org</a> as 107.22.212.69. But git pull on the laptop works<br>
OK, but on the VM returns &quot;Permission denied<br>
(publickey,gssapi-keyex,<wbr>gssapi-with-mic)&quot;.<br>
<br>
Investigation shows that <a href="http://gerrit.ovirt.org" rel="noreferrer" target="_blank">gerrit.ovirt.org</a> visible for laptop has:<br>
<br>
Fingerprint:<br>
55:d7:e6:19:23:19:a6:ca:2a:07:<wbr>b0:3c:fa:bd:14:88<br>
Entry for ~/.ssh/known_hosts:<br>
[<a href="http://gerrit.ovirt.org" rel="noreferrer" target="_blank">gerrit.ovirt.org</a>]:29418,[107.<wbr>22.212.69]:29418 ssh-rsa<br>
AAAAB3NzaC1yc2EAAAABIwAAAQEAqg<wbr>WNlffhq...XtFgTvGQ==<br>
<br>
But <a href="http://gerrit.ovirt.org" rel="noreferrer" target="_blank">gerrit.ovirt.org</a> visible for laptop has:<br>
<br>
Fingerprint:<br>
e5:5b:1c:2f:49:c3:01:6b:24:f5:<wbr>dd:7e:11:ee:f0:a7<br>
Entry for ~/.ssh/known_hosts:<br>
<a href="http://gerrit.ovirt.org" rel="noreferrer" target="_blank">gerrit.ovirt.org</a>,107.22.212.69 ssh-rsa<br>
AAAAB3NzaC1yc2EAAAABIwAAAQEAyt<wbr>/BaplDZPW+meN2ZLhY7vyU0xC...<wbr>BGWRN7aceXQ==<br>
<br>
The first is the key of the real Gerrit host and the second is some other key.<br>
<br>
How it can happen?<br>
<br>
Shmuel<br>
______________________________<wbr>_________________<br>
Infra mailing list<br>
<a href="mailto:Infra@ovirt.org">Infra@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/infra" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/infra</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:small">Regards,</div><div style="font-size:small">Evgheni Dereveanchin</div></div></div>
</div>