Topic on Project:Support desk

Unable to connect to gerrit.wikimedia.org with ssh

4
Summary by MarkAHershberger

Wrong username was used.

Goldengide1 (talkcontribs)

I have been able to connect to gerrit.wikimedia.org in the last two week but early last week I had to reinstall my wampserver so I tried to connect again based on the instructions on Gerrit/Tutorial. This time it didnot connect it kept bringing up Permission denied (publickey). Please someone tell me what I am not doing right

OS: Windows 10

Goldengide1 (talkcontribs)

This is my debug message:

$ ssh -p 29418 myusername@gerrit.wikimedia.org -v

OpenSSH_7.3p1, OpenSSL 1.0.2j  26 Sep 2016

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Connecting to gerrit.wikimedia.org [208.80.154.85] port 29418.

debug1: Connection established.

debug1: identity file /c/Users/Gideon/.ssh/id_rsa type 1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_rsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_dsa type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_dsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ecdsa type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ecdsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ed25519 type -1

debug1: key_load_public: No such file or directory

debug1: identity file /c/Users/Gideon/.ssh/id_ed25519-cert type -1

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-OpenSSH_7.3

debug1: Remote protocol version 2.0, remote software version GerritCodeReview_2.13.4-13-gc0c5cc4742 (SSHD-CORE-1.2.0)

debug1: no match: GerritCodeReview_2.13.4-13-gc0c5cc4742 (SSHD-CORE-1.2.0)

debug1: Authenticating to gerrit.wikimedia.org:29418 as 'Goldengide1'

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: algorithm: ecdh-sha2-nistp256

debug1: kex: host key algorithm: ssh-rsa

debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none

debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none

debug1: sending SSH2_MSG_KEX_ECDH_INIT

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

debug1: Server host key: ssh-rsa SHA256:j7HQoQ6fIuEgDHjONjI2CZ+2Iwxqgo2Ur5LbPqBgxOU

debug1: Host '[gerrit.wikimedia.org]:29418' is known and matches the RSA host key.

debug1: Found key in /c/Users/Gideon/.ssh/known_hosts:1

debug1: rekey after 4294967296 blocks

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: rekey after 4294967296 blocks

debug1: SSH2_MSG_NEWKEYS received

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug1: Authentications that can continue: publickey

debug1: Next authentication method: publickey

debug1: Offering RSA public key: c:/wamp/www/mediawiki/.ssh/id_rsa

debug1: Authentications that can continue: publickey

debug1: Offering RSA public key: /c/Users/Gideon/.ssh/id_rsa

debug1: Authentications that can continue: publickey

debug1: Trying private key: /c/Users/Gideon/.ssh/id_dsa

debug1: Trying private key: /c/Users/Gideon/.ssh/id_ecdsa

debug1: Trying private key: /c/Users/Gideon/.ssh/id_ed25519

debug1: No more authentication methods to try.

Permission denied (publickey).

MarkAHershberger (talkcontribs)
Goldengide1 (talkcontribs)

thanks for the reply

I made a mistake with my username.

I could login with Goldengide1 on gerrit but when I checked my profile I saw goldengide.

so I had to use goldengide in place of <username> and it worked. Thanks a bunch for showing concern