SSH returns: get_socket_address: getnameinfo 8 failed: Name or service not known

Solution Verified - Updated -

Issue

SSH is configured with HostbasedAuthentication enabed,  Ssh to server returns the following error.

[xxxx@xxx-client ~]$ ssh xxx-server
get_socket_address: getnameinfo 8 failed: Name or service not known
userauth_hostbased: cannot get local ipaddr/name
xxxx@xxx-server's password: 

Environment

Red Hat Enterprise Linux, All versions

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