Why does SFTP connection end with error: No matching cipher found?

Solution Verified - Updated -

Issue

  • While connecting to sftp server getting below error:

    debug1: kex: algorithm: ecdh-sha2-nistp256
    debug1: kex: host key algorithm: rsa-sha2-512
    Unable to negotiate with XX.XX.XX.XX  port 22: no matching cipher found. Their offer:  aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc       >>>
    Connection closed.
    

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8

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