bitbucket - The authenticity of host 'bitbucket.org' can't be established
Asked Answered
O

2

8

I've been getting this issue when trying to push to my bitbucket repo, not sure why the fingerprints don't match:

http://imgur.com/38p8n
http://imgur.com/3B35N
It asks me if I want to continue, but I can't type anything in the dialog after hitting ok. Any insight? Thanks in advance!

Ostrich answered 30/12, 2012 at 6:28 Comment(0)
L
12

I had the same problem..found that this happens because bitbucket.org is not in the Known Host list . these are steps from the scratch... (Assumed you are using EGit with Eclipse and have configured ssh keys)

EDIT: To Create Local Repository
1.Right click project ->Team -> Share Project
2. Select GIT from the menu click next (Ignore message "HOME environment variable not set..")
3.Select use or Create repo. in parent folder...and select the project
4.hit create repo. button -> finish

1.In Eclipse Open the Git Repository View
Window->show view->other->Git->Git Repository

Git Repository View

2.Enter repo name Enter Repo Name


3.From next window click ADD button enter repository uri the click finish enter image description here

4.Now click the Dry Run Button and you should get the following dialog click YES and bitbucket will be added to known hosts
enter image description here


5.Finaly click save and push button

Labiovelar answered 16/1, 2013 at 5:0 Comment(1)
wft why is this so bugsome? This saved me today!Isotherm
U
0

Some insight:

on freshly installed macos, from the terminal, after first git clone, the host was added to file known_hosts.

Cloning into '<name of new dir>'...
The authenticity of host '<bitbucket site>:<portno> ([<ip address>]:<portno>)' can't be established.
RSA key fingerprint is <...>
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Et cetera.

Repo was cloned, directory was cloned.

cat ~/.ssh/known_hosts

<bitbucket site>:<portno> ssh-rsa <rsa key>
Unblessed answered 7/6 at 8:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.