When I run ssh-add -l, it does not show the location of the SSH key(s). It outputs the following:
4096 SHA256:bBMtB9wL6RXRWhvx5M+LDox6A2gq61CDtZN9F4bi3Gw [email protected] (RSA)
2048 SHA256:QbCO5y5SX+CSHd6++yXPpJuWGrxGCx5liNktjz51ZWY masoud@x (RSA)
How can I make it shows the key location as well?
I am running macOS Mojave 10.14.4.
~/.ssh? As far as I know,ssh-agentdoes not cache the filename from which a key was loaded, so there is no option to display it. You can compare fingerprints of your keys with the fingerprints listed byssh-add -lto determine which key file corresponds to which fingerprint in the agent.