You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comments in authorized_keys cause an error: ERR cannot parse identity line: unknown identity format: # OpenSSH authorized_keys file format is described in sshd(8) manual page.
ALT Linux have comment in authorized_keys at the 1st line for each user by default:
# OpenSSH authorized_keys file format is described in sshd(8) manual page.
ps. Alto it's common for users to comment old keys instead of deleting them so this is not an error.
The text was updated successfully, but these errors were encountered:
I am using the ssh_config package to parse the config and I am surprised it does not handle that case. Maybe there is a bad edge case with comments in the first line.
I'll have a look and do a quick fix if the problem comes from github.com/kevinburke/ssh_config.
EDIT: seems I misread and the issue was about authorized_identities and not the SSH config.
Until now, commented lines raised a logging at error level in authorized_indentities and authorized_keys. (#50)
We fixed the logging to explicitly say that empty and commented lines are skipped.
Also added a test case with commented lines in authorized_identities
Fix: #50
Comments in
authorized_keys
cause an error:ERR cannot parse identity line: unknown identity format: # OpenSSH authorized_keys file format is described in sshd(8) manual page.
ALT Linux have comment in
authorized_keys
at the 1st line for each user by default:ps. Alto it's common for users to comment old keys instead of deleting them so this is not an error.
The text was updated successfully, but these errors were encountered: