cannot access to postgres-git via ssh

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: cannot access to postgres-git via ssh
Date: 2021-08-26 07:34:25
Message-ID: 20210826.163425.336345353197370935.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

I'm facing a difficulty on cloning a repository via ssh.

I understand that git repository can be accessed via http, git and ssh
protocol, and ssh access uses the ssh public key registered in
community account profile. I registered one in ecdsa-sha2-nistp256
that I believe the server accepts. I waited for more than 1 hour
since key registration until the operation.

If I ran the following command, it would fail.

===
$ git clone ssh://git(at)git(dot)postgresql(dot)org/postgresql.git postgresql
Cloning into 'postgresql'...
git(at)git(dot)postgresql(dot)org: Permission denied (publickey).
fatal: Could not read from remote repository.

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

In detail it is failing as the following.

GIT_SSH_COMMAND="ssh -vvv" git clone ssh://git(at)git(dot)postgresql(dot)org/postgresql.git
...
debug1: Offering public key: horiguti(at)cent8 ECDSA SHA256:z...QM agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51

So the server just refuses the key with SSH_MSG_USERAUTH_FAILURE. The
key in the debug1 line looks the correct one.

Any comments on the operation above, or on how to diagnose that
further are welcome. In other words, please help me!

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2021-08-26 08:17:03 Re: [bug] Logical Decoding of relation rewrite with toast does not reset toast_hash
Previous Message Julien Rouhaud 2021-08-26 07:24:33 Re: [PATCH] Disable bgworkers during servers start in pg_upgrade