Created
January 28, 2020 19:44
-
-
Save andy722/ca53f60d55c4a493a3d51a5b1b52fcfd to your computer and use it in GitHub Desktop.
Determine which SSH public key was used for access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /var/log/secure: | |
... | |
Jan 28 10:47:22 web01 sshd[17503]: Accepted publickey for <myuser> from <myip> port 56325 ssh2: RSA SHA256:<checksum> | |
... | |
# Compute fingerprints from authorized keys. | |
# Match w/ the one in `secure' log. | |
# ssh-keygen -lf ~myuser/.ssh/authorized_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment