Is it possible to have hostname in ssh logs alongwith the ipaddress ?

Solution Unverified - Updated -

Issue

  • Is it possible to have hostname in ssh logs alongwith the ipaddress ?

For eg :-

Apr  5 12:21:44 abc sshd[5592]: Accepted password for root from 10.65.210.217 port 49618 ssh2  << This is normal format

Apr  5 12:21:44 abc sshd[5592]: Accepted password for root from < hostname of client > 10.65.210.217 port 49618 ssh2   << This is required format

Is this possible ?

Environment

  • All Red Hat Enterprise Linux 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