1. SSH: “REMOTE HOST IDENTIFICATION HAS CHANGED”

SSH: “REMOTE HOST IDENTIFICATION HAS CHANGED”

Home › Forums › FABRIC General Questions and Discussion › SSH: “REMOTE HOST IDENTIFICATION HAS CHANGED”

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10129
    Alexandros Koufakis
    Participant

      Hello,

      I’m am trying to connect to my slice VM through bastion.fabric-testbed.net from Windows 11 with OpenSSH. SSH is repeatedly reporting “REMOTE HOST IDENTIFICATION HAS CHANGED” for the bastion, and I was wondering whether this behaviour is expected.

      I can provide the host fingerprints and the (approximate) timestamp if needed.

      I didn’t find anything in the knowledge base.

      Do you know if the changing host fingerprints are expected? What is the suggested way to handle this?

      Many thanks!

      #10145
      Komal Thareja
      Moderator

        Hello,

        This is not a compromise. bastion.fabric-testbed.net resolves to multiple bastion hosts, and they do not all present the same host key. Depending on which one your connection lands on, OpenSSH sees a key different from the one saved in known_hosts and reports the warning.

        The current ED25519 fingerprints are:
        SHA256:8ZrrCmYlgVJciScTwz3sDTsV3MV0kvcwtTgSOGYGwzg
        SHA256:hPlunCRB4N5I7a55fl3giQlGEKqN/qxun4Zf3qkvkgg
        SHA256:LF6Oc2ZY84CrUOK6orjNXeBuRDIrevvdKDg98liP5hY

        Could you please confirm the fingerprints you are seeing match the above?

        If they do, you can add all of the bastion keys to known_hosts so any of them is accepted. In PowerShell:
        1. Remove the existing entry:
        ssh-keygen -R bastion.fabric-testbed.net

        2. Add the keys for all bastion hosts:
        ssh-keyscan -t ed25519 23.134.235.242 152.54.15.12 141.142.140.10 128.163.180.149 | ForEach-Object { $_ -replace ‘^\S+’, ‘bastion.fabric-testbed.net’ } | Add-Content $env:USERPROFILE\.ssh\known_hosts

        3. Verify the saved keys against the fingerprints above:
        ssh-keygen -lf $env:USERPROFILE\.ssh\known_hosts

        Please let me know if you still see the warning after this. Hope this helps!

        Thanks and Regards,
        Komal

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.