Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I am unable to access remote repository from bitbucket even though I added correct rsa public key

Sachin Mittal
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!
July 17, 2023
The fingerprint for the RSA key sent by the remote host is
SHA256:46OSHA1Rmj8E8ERTC6xkNcmGOw9oFxYr0WF6zWW8l1E.
Please contact your system administrator.
Add correct host key in /c/Users/mittas1/Onedrive - Invesco/.ssh/known_hosts to get rid of this message.
Offending RSA key in /c/Users/mittas1/Onedrive - Invesco/.ssh/known_hosts:1
RSA host key for bitbucket.org has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
I also added known_hosts with below format:
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDuqwoHsoDTJOdBZqmPgI4DtwFM4XERICBQDYdWVe/s0FklTUMH+mO4bDpNSK7kfo8kZdObiqjkhzwAMUiTRqQY8HHeW80xL72mUelrmFWBpTIzZ1pM1+ppKc0cTDuLZmCxZKz/Zi5OYqyqsSdbPvVgyp3yepsmwXLDhWy3YSRIlap585jUYzyUlOzAZoyMgbE2KeyYvcVAgqLvTcLmucJcFXYqtIxXiNlVpduOPZ+WdnYjpwhzn219Z+DN2DlId0d739yo+ikCpVRHU/bJzgh6rTATEAlMGWW+DwAr0FdFR6jdDu+JZ55dvu9jHpuc255PIXXrmA0fidePA+7XxWL
[altssh.bitbucket.org]:443 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDuqwoHsoDTJOdBZqmPgI4DtwFM4XERICBQDYdWVe/s0FklTUMH+mO4bDpNSK7kfo8kZdObiqjkhzwAMUiTRqQY8HHeW80xL72mUelrmFWBpTIzZ1pM1+ppKc0cTDuLZmCxZKz/Zi5OYqyqsSdbPvVgyp3yepsmwXLDhWy3YSRIlap585jUYzyUlOzAZoyMgbE2KeyYvcVAgqLvTcLmucJcFXYqtIxXiNlVpduOPZ+WdnYjpwhzn219Z+DN2DlId0d739yo+ikCpVRHU/bJzgh6rTATEAlMGWW+DwAr0FdFR6jdDu+JZ55dvu9jHpuc255PIXXrmA0fidePA+7XxWL
104.192.141.1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDuqwoHsoDTJOdBZqmPgI4DtwFM4XERICBQDYdWVe/s0FklTUMH+mO4bDpNSK7kfo8kZdObiqjkhzwAMUiTRqQY8HHeW80xL72mUelrmFWBpTIzZ1pM1+ppKc0cTDuLZmCxZKz/Zi5OYqyqsSdbPvVgyp3yepsmwXLDhWy3YSRIlap585jUYzyUlOzAZoyMgbE2KeyYvcVAgqLvTcLmucJcFXYqtIxXiNlVpduOPZ+WdnYjpwhzn219Z+DN2DlId0d739yo+ikCpVRHU/bJzgh6rTATEAlMGWW+DwAr0FdFR6jdDu+JZ55dvu9jHpuc255PIXXrmA0fidePA+7XxWL

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2023

Hi @Sachin Mittal,

We recently added two new host keys in Bitbucket Cloud, we rotated the RSA host key and removed the DSA host key.

The RSA key you have in your known_hosts file is not the one Bitbucket Cloud is using, which is the reason for the error you see.

You need to remove these entries from your known_hosts file and you can copy-paste in your known_hosts the entries from the site below:

There are the new SSH host keys that Bitbucket Cloud is currently using.

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events