Link to home
Start Free TrialLog in
Avatar of Balbir Singh
Balbir SinghFlag for United States of America

asked on

How to log public key of ssh client to ssh server?

We know that in private public key authentication ssh client sends its public to to ssh-server. I would like to know if there is way we can log the public key of the client in ssh log file. Or is there a way to achieve it? Any direction in this would be highly appreciated.

Best Regards.
ASKER CERTIFIED SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You said, "I would like to know if there is way we can log the public key of the client in ssh log file."

As said above, you can log everything (serialband) + this will produce a lot of log data (skullnobrains).

Maybe ask the question behind your question.

In other words, describe what problem you're trying to solve using logging.