diff --git a/syncoid b/syncoid index 3f112de..d792e6f 100755 --- a/syncoid +++ b/syncoid @@ -1488,7 +1488,7 @@ sub getssh { if ($rhost ne "") { if ($remoteuser eq 'root' || $args{'no-privilege-elevation'}) { $isroot = 1; } else { $isroot = 0; } # now we need to establish a persistent master SSH connection - $socket = "/tmp/syncoid-$rhost-" . time(); + $socket = "/tmp/syncoid-$rhost-" . time() . "-" . int(rand(10000)); open FH, "$sshcmd -M -S $socket -o ControlPersist=1m $args{'sshport'} $rhost exit |"; close FH;