Page MenuHomePhabricator
Paste P12958

Error when adding SSH Private key to use with Git
ActivePublic

Authored by Hulya on Oct 9 2020, 4:37 PM.
TASK:
Connect to the Gerrit server via ssh to check if everything works as expected. Replace gerrituser by your username as shown in your Gerrit settings:
ssh -p 29418 gerrituser@gerrit.wikimedia.org
OUTPUT:
ssh -p 29418 hulya@gerrit.wikimedia.org
The authenticity of host '[gerrit.wikimedia.org]:29418 ([208.80.154.137]:29418)' can't be established.
RSA key fingerprint is SHA256:j7HQoQ6fIuEgDHjONjI2CZ+2Iwxqgo2Ur5LbPqBgxOU.
I have set up a Wikimedia developer account and put my Public SSH key under settings and SSH keys.

Event Timeline

@Hulya have you used the correct Gerrit username

@Hulya if possible please provide what steps you've used. That would make it easier for me to know where you might have made a mistake

Hi, yes I have used the same username as I have in the Gerrit account.

https://www.mediawiki.org/wiki/Gerrit/Tutorial
I am following the tutorial

I have configured Git and created my SSH key:
commands

ssh-keygen -t rsa -C "hulyakarakayaa06@gmail.com"

pbcopy < ~/.ssh/id_rsa.pub

copy and paste to settings https://gerrit.wikimedia.org/r/settings/ for public key

eval ssh-agent

ssh-add .ssh/id_rsa

entered passphrase

output:
Identity added: .ssh/id_rsa (hulyakarakayaa06@gmail.com)

ssh -p 29418 hulya@gerrit.wikimedia.org

The authenticity of host '[gerrit.wikimedia.org]:29418 ([208.80.154.137]:29418)' can't be established.
RSA key fingerprint is SHA256:j7HQoQ6fIuEgDHjONjI2CZ+2Iwxqgo2Ur5LbPqBgxOU.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

I am using MacOS Catalina

I have fixed the issue, thank you!