Univention Bugzilla – Bug 42476
univention-ssh should use "-o ControlPath none"
Last modified: 2016-09-28 14:04:38 CEST
A customer enabled SSH connection multiplexing in /root/.ssh/config with ControlPersist 30m A the Samba sysvol share replication mechanism in UCS uses univention-ssh-rsync like: services/univention-samba4/sysvol-sync-scripts/sysvol-sync.sh > need_sync="$(univention-ssh-rsync /etc/machine.secret \ > --dry-run -v "${rsync_options[@]}" \ > "$src"/ "$dst" 2>&1 \ > | sed '1,/^receiving incremental file list$/d;' | head --lines=-3)" In that case the ssh process forks into the background and inherits the PIPE to sed as STDERR, thus remaining as the lone possible writer. A such sed/head don't terminate as they must wait for all possible writers to quit first. univention-ssh should pass "-o ControlPath none" to ssh to never use connection multiplexing.
r72754 | Bug #42476 ssh: Disable ssh connection multiplexing r72749 | Bug #42476 ssh: Disable ssh connection multiplexing r72748 | Bug #42476 ssh: Copyright 2016 Package: univention-ssh Version: 7.0.0-3.52.201609221414 Branch: ucs_4.1-0 Scope: errata4.1-3 r72755 | Bug #42476 ssh: Disable ssh connection multiplexing YAML univention-ssh.yaml
OK - univention-ssh sets ControlPath=none OK - yaml OK - merged to 4.2-0
<https://errata.software-univention.de/ucs/4.1/280.html>