BitBucket SSH key refresh requires update to known_hosts file

Al Burns's Avatar

Al Burns

25 May, 2023 09:41 AM

Hi. Bitbucket has notified us of a change to their SSH host keys and I have started noticing a warning message at the start of some of our AppVeyor builds (see attached screenshot) so wondered if you need to update the known_hosts file as instructed for the VMs that handle the builds?

  1. 1 Posted by Jacob on 26 May, 2023 11:51 AM

    Jacob's Avatar

    Hi !

    I have the same problem using the Visual Studio 2015 image.
    Is there a way around this ?

  2. Support Staff 2 Posted by Feodor Fitsner on 26 May, 2023 03:57 PM

    Feodor Fitsner's Avatar

    Hi Jacob,

    We are going to update VS 2015 image next week.

    In the meantime you can add this command to appveyor.yml which removes entries from known_hosts:

    - ssh-keygen -qR

    You don't actually need to change appveyor.yml for every project. Instead you can apply the fix to all projects on "Account -> Global YAML" page.

    Alternatively, you can just append missing key to known_hosts:

    - cmd: echo ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIazEu89wgQZ4bqs3d63QSMzYVa0MuJ2e2gKTKqu+UUO >> %USERPROFILE%\.ssh\known_hosts
  3. Support Staff 3 Posted by Owen McDonnell on 31 May, 2023 07:33 PM

    Owen McDonnell's Avatar

    Hi Jacob,

    That image has been updated so you should no longer need the command Feodor suggested.
    Let us know if you are still having any problems.

  4. 4 Posted by Jacob Støren on 01 Jun, 2023 06:38 AM

    Jacob Støren's Avatar

    Thank you!

    I will test it, and let you know if there still are problems.


    Fra: Owen McDonnell <[email blocked]>
    Sendt: onsdag 31. mai 2023 21:34
    Til: Jacob Støren <[email blocked]>
    Emne: Re: BitBucket SSH key refresh requires update to known_hosts file [Problems #34446]

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • AppVeyor_Build_Warning.png 30 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac