Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

forge Host key verification failed.

Prateek Mishra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 20, 2023

ACTION REQUIRED: Update your Bitbucket Cloud SSH Host Keys

I am getting this  
Host key verification failed. fatal: Could not read from remote repository.

even though I have updated knowns hosts file

ssh-keygen -R bitbucket.org && curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts
 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 20, 2023

Hi @Prateek Mishra and welcome to the community.

Can you please try executing the following command and let me know if you're still experiencing issues after that?

ssh-keygen -R bitbucket.org && sed -i.old -e '/AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/d' ~/.ssh/known_hosts && curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts

If you're still experiencing issues, can you please let me know:

1. Do you see this error when doing Git operations from command line? From a Git GUI application? Or from a CI/CD application?

2. If you are not doing the operation from command line, which application are you using? And what SSH client does this application use?

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events