Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Which SSH-Key was used for loggin in to a machine?

    Posted on

    Hello,

    When a SSH-Public-Key-Authentication is successful, the file /var/log/secure shows entries similar to this one:

    Jun 13 15:31:09 hostname sshd[22293]: Accepted publickey for root from X.X.X.X port 55943 ssh2: RSA cd:33:39:38:f7:e3:49:b1:a6:3f:8d:8f:cc:69:d7:c3
    

    I like to know which public key was used for the login. Is there any way to connect the RSA fingerprint/hash to the corresponding ssh-public-key?

    Thanks in advance for your help.

    Best regards,
    Joerg K.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat