Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
libssh2: add support for forcing a specific host key #4747
Currently, curl (with libssh2) does not take keys from your known_hosts file into account when talking to a server. With this patch the known_hosts file will be searched for an entry matching the hostname and, if found, libssh2 will be told to claim this key type from the server.
jay left a comment
I think the TODOs and questions in the code should be cleared up before this is added. I'd wait until the next feature window for this. Also you might need a guard for HAVE_LIBSSH2_KNOWNHOST_API because it looks like otherwise there's no sshc->kh