[Bug 3793] New: Colon in identity file name causes 'load pubkey invalid format'
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sat Feb 22 03:13:38 AEDT 2025
https://bugzilla.mindrot.org/show_bug.cgi?id=3793
Bug ID: 3793
Summary: Colon in identity file name causes 'load pubkey
invalid format'
Product: Portable OpenSSH
Version: 8.0p1
Hardware: amd64
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: mjenki03 at gmail.com
If you use an IdentityFile in your config with a colon in it, ssh
generates a 'load pubkey "/path/to/key/namewith:init" format error' but
then continues working anyways.
So if you have a ~/.ssh/config like so
Host hostname
IdentityFile /home/user/.ssh/id_KEYTYPE_ISOTIMESTAMP
When you go to use it, it generates that error. If you remove the
colons from the timestamp and update the config file the error goes
away.
It's not a huge issue, hence being 'minor' and I've worked around it by
removing the colons. I've started adding timestamps to key file names
to keep our security scanners honest. :)
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list