[Bug 3850] New: concurrent runs of ssh corrupts the known_hosts file

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jul 16 05:32:04 AEST 2025


https://bugzilla.mindrot.org/show_bug.cgi?id=3850

            Bug ID: 3850
           Summary: concurrent runs of ssh corrupts the known_hosts file
           Product: Portable OpenSSH
           Version: 10.0p2
          Hardware: amd64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: toralf.foerster at gmx.de

If I run few (about 16) ssh commands in parallel as seen in [1], then
from time to time the known_hosts files gets being corrupted. In that
case I have to delete those lines where 2 parallel ssh commands wrote
into the same line.

I do wonder whether ssh allows concurrent runs at the same machine (for
new systems where the ssh host key is not yet known) or not?



[1]
https://github.com/toralf/tor-relays/blob/main/bin/trust-host-ssh-key.sh#L16

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list