Curl fails to connect sftp with an error 'curl: (51) SSL peer certificate or SSH remote key was not OK'?

Solution Verified - Updated -

Issue

  • Curl fails to connect sftp with an error 'curl: (51) SSL peer certificate or SSH remote key was not OK'?

Environment

  • Red Hat Enterprise Linux 7
  • curl-7.29.0-54.el7.x86_64
  • libssh2-1.8.0-3.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content