Code Monkey home page Code Monkey logo

Comments (3)

Rob-Hague avatar Rob-Hague commented on May 28, 2024

Intentional, maybe? HostKeyName is not really documented but currently returns the signature format identifier which is usually the same as the key format identifier: the key format identifier for RSA keys is ssh-rsa and the signature format identifier for a SHA1 signature is also ssh-rsa.

#1177 tells the server that we would prefer to validate the host key with a SHA2 signature AKA the signature format identifiers rsa-sha2-256 and rsa-sha2-512 which is what your server has given us.

As to whether HostKeyName should return the key format identifier or signature format identifier, I don't really know. What do you use it for?

from ssh.net.

a-jackson avatar a-jackson commented on May 28, 2024

We compare the name, length and fingerprint match against what we expect for each connection to set CanTrust and so with this change the name no longer matches.
Probably not really necessary to compare more than the fingerprint though 🤷

from ssh.net.

Rob-Hague avatar Rob-Hague commented on May 28, 2024

Indeed, the SHA2 fingerprint is enough (HostKeyEventArgs.FingerPrintSHA256). That would be the easiest fix here, until someone willing is convinced HostKeyName should change.

from ssh.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.