Auditing some servers, I need a list of the comments on all the authorised keys in the authorized_keys file.
How can I cut this file to display a list of comments, eg user@host?
Anything can appear before the Key, including spaces
The Key Comment appears directly after the key
The Key Comment is the last item in the line
The Key Comment can contain spaces
The Key is the longest field on each line
It is desired that the key comment only is extracted from each line.