[Bug 1545] New: ssh-keygen -R removes all comments from known_hosts file
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Fri Dec 19 03:59:24 EST 2008
https://bugzilla.mindrot.org/show_bug.cgi?id=1545
Summary: ssh-keygen -R removes all comments from known_hosts
file
Product: Portable OpenSSH
Version: 5.1p1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: ssh-keygen
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: ssh-bugzilla at finestructure.net
ssh-keygen -R is currently removing *all* comments from the known_hosts
file it's processing. Below is an example of ssh-keygen -R being run
on a test known_host file. An attachment is included that demonstrates
the problem in action.
Notice that the first invocation is to remove example1.server.net from
the
file, but the comment on example2.server.net is removed in the
process as well. The same problem occurs when nothing no host is
removed from the file at all.
In both cases an attempt was made to remove a host *other* than
example2.server.net, but the net result was that *all* comments where
removed from the file.
Thanks for the help.
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list