[asterisk-bugs] [JIRA] (ASTERISK-29333) Can't use SSH with gerrit

Brian J. Murrell (JIRA) noreply at issues.asterisk.org
Tue Mar 9 06:13:15 CST 2021


Brian J. Murrell created ASTERISK-29333:
-------------------------------------------

             Summary: Can't use SSH with gerrit
                 Key: ASTERISK-29333
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29333
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: General
    Affects Versions: 18.2.2
            Reporter: Brian J. Murrell
            Severity: Major


Apologies for opening this issue here but I could not find any other means of contact for Gerrit issues.

I have my account set up and have submitted patches before, however my SSH access no longer seems to be working, despite my having an SSH key uploaded to my profile.

Here's my .ssh/config:
{noformat}
Host asterisk
    HostName gerrit.asterisk.org
    Port 29418
    User brian_j_murrell
    PubkeyAcceptedKeyTypes +ssh-dss
{noformat}

and here is what trying to ssh to Gerrit says:

{noformat}
debug1: Authenticating to gerrit.asterisk.org:29418 as 'brian_j_murrell'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: ecdh-sha2-nistp256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: aes256-ctr MAC: hmac-sha2-256-etm at openssh.com compression: none
debug1: kex: client->server cipher: aes256-ctr MAC: hmac-sha2-256-etm at openssh.com compression: none
debug1: kex: ecdh-sha2-nistp256 need=32 dh_need=32
debug1: kex: ecdh-sha2-nistp256 need=32 dh_need=32
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ssh-rsa SHA256:pK8Lib9M6vzy49IUucoMkd3KNnsXIidqC0KN4v9aFuE
debug1: Host '[gerrit.asterisk.org]:29418' is known and matches the RSA host key.
debug1: Found key in /home/brian/.ssh/known_hosts:706
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /home/brian/.ssh/id_ed25519 ED25519 SHA256:Kq5F1/gDZUfmovUWcJfF5aQBtmYDtXHSpIZzqUFVkSs agent
debug1: Will attempt key: /home/brian/.ssh/id_rsa RSA SHA256:pnmnK9RPpG5wiIAq+lTRVr2Ojoct9f3/013zKgVmh+w agent
debug1: Will attempt key: /home/brian/.ssh/id_dsa DSA SHA256:evtsThdrqDDuHGTHsdo0xJRO/gn4g9A6XHlDyhUQYLs agent
debug1: Will attempt key: /home/brian/.ssh/id_ecdsa 
debug1: Will attempt key: /home/brian/.ssh/id_ecdsa_sk 
debug1: Will attempt key: /home/brian/.ssh/id_ed25519_sk 
debug1: Will attempt key: /home/brian/.ssh/id_xmss 
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/brian/.ssh/id_ed25519 ED25519 SHA256:Kq5F1/gDZUfmovUWcJfF5aQBtmYDtXHSpIZzqUFVkSs agent
debug1: Authentications that can continue: publickey
debug1: Offering public key: /home/brian/.ssh/id_rsa RSA SHA256:pnmnK9RPpG5wiIAq+lTRVr2Ojoct9f3/013zKgVmh+w agent
debug1: Authentications that can continue: publickey
debug1: Offering public key: /home/brian/.ssh/id_dsa DSA SHA256:evtsThdrqDDuHGTHsdo0xJRO/gn4g9A6XHlDyhUQYLs agent
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/brian/.ssh/id_ecdsa
debug1: Trying private key: /home/brian/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/brian/.ssh/id_ed25519_sk
debug1: Trying private key: /home/brian/.ssh/id_xmss
debug1: No more authentication methods to try.
brian_j_murrell at gerrit.asterisk.org: Permission denied (publickey).
{noformat}

So as you can see, even though it is sending ssh keys, ultimately my ssh client is denied.  It's the first key:

{noformat}
debug1: Offering public key: /home/brian/.ssh/id_ed25519 ED25519 SHA256:Kq5F1/gDZUfmovUWcJfF5aQBtmYDtXHSpIZzqUFVkSs agent
{noformat}

that I have uploaded to my profile in Gerrit.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list