BitBucket changed their host keys in 2023, and this will cause problems when verifying connections through Jenkins. If you are running Jenkins on a Windows machine, you will need to update your known_hosts file with the new host keys from BitBucket.
The known_hosts file is located at C:\Users\<Jenkins user>\.ssh\known_hosts. This is a text file. If it does not exist, create it.
In the file, add entries for the new BitBucket host keys. There are 3 keys in total:
- ecdsa-sha2-nistp256
- ssh-ed25519
- ssh-rsa
bitbucket.org ecdsa-sha2-nistp256 <key value>
bitbucket.org ssh-ed25519 <key value>bitbucket.org ssh-rsa <key value>






