[CentOS] rsync over ssh stalls after completing the job

Wed Apr 14 04:40:54 UTC 2021
Frank Cox <theatre at sasktel.net>

On Tue, 13 Apr 2021 23:36:48 -0400
Chris Schanzle via CentOS wrote:

> I discovered if I set ForwardX11=no (either on ssh command line or in
> ~/.ssh/config) the hang does not happen.  But why does that matter?  No
> updates to openssh.

Far out!  That's the solution!

Well, not really a solution but it's certainly a work-around that makes rsync over ssh work without hanging.

I discovered that you have to put the "ForwardX11 no" into the default part of .ssh/config.

It doesn't work if you just specify the host involved.

This doesn't work:
Host *
ForwardX11 yes
host jeff
ForwardX11 no

This does work:
Host *
ForwardX11 no

Someone should probably file a bug report about this, but I have no idea what package it pertains to.  As you said, openssh wasn't updated at the point that this broke.

If it's of any value, here's a list of what was updated last on this computer.  The ones that look most suspicious to me would be kernel, crypto-policies and/or systemd.

Packages Altered:
    Install  kernel-4.18.0-240.22.1.el8_3.x86_64                        @baseos
    Install  kernel-core-4.18.0-240.22.1.el8_3.x86_64                   @baseos
    Install  kernel-debug-devel-4.18.0-240.22.1.el8_3.x86_64            @baseos
    Install  kernel-devel-4.18.0-240.22.1.el8_3.x86_64                  @baseos
    Install  kernel-modules-4.18.0-240.22.1.el8_3.x86_64                @baseos
    Upgrade  dbus-x11-1:1.12.8-12.el8_3.x86_64                          @appstream
    Upgraded dbus-x11-1:1.12.8-11.el8.x86_64                            @@System
    Upgrade  flatpak-1.6.2-6.el8_3.x86_64                               @appstream
    Upgraded flatpak-1.6.2-5.el8_3.x86_64                               @@System
    Upgrade  flatpak-libs-1.6.2-6.el8_3.x86_64                          @appstream
    Upgraded flatpak-libs-1.6.2-5.el8_3.x86_64                          @@System
    Upgrade  flatpak-selinux-1.6.2-6.el8_3.noarch                       @appstream
    Upgraded flatpak-selinux-1.6.2-5.el8_3.noarch                       @@System
    Upgrade  flatpak-session-helper-1.6.2-6.el8_3.x86_64                @appstream
    Upgraded flatpak-session-helper-1.6.2-5.el8_3.x86_64                @@System
    Upgrade  java-1.8.0-openjdk-1:1.8.0.282.b08-2.el8_3.x86_64          @appstream
    Upgraded java-1.8.0-openjdk-1:1.8.0.275.b01-1.el8_3.x86_64          @@System
    Upgrade  java-1.8.0-openjdk-devel-1:1.8.0.282.b08-2.el8_3.x86_64    @appstream
    Upgraded java-1.8.0-openjdk-devel-1:1.8.0.275.b01-1.el8_3.x86_64    @@System
    Upgrade  java-1.8.0-openjdk-headless-1:1.8.0.282.b08-2.el8_3.x86_64 @appstream
    Upgraded java-1.8.0-openjdk-headless-1:1.8.0.275.b01-1.el8_3.x86_64 @@System
    Upgrade  bpftool-4.18.0-240.22.1.el8_3.x86_64                       @baseos
    Upgraded bpftool-4.18.0-240.15.1.el8_3.x86_64                       @@System
    Upgrade  crypto-policies-20210209-1.gitbfb6bed.el8_3.noarch         @baseos
    Upgraded crypto-policies-20200713-1.git51d1222.el8.noarch           @@System
    Upgrade  crypto-policies-scripts-20210209-1.gitbfb6bed.el8_3.noarch @baseos
    Upgraded crypto-policies-scripts-20200713-1.git51d1222.el8.noarch   @@System
    Upgrade  dbus-1:1.12.8-12.el8_3.x86_64                              @baseos
    Upgraded dbus-1:1.12.8-11.el8.x86_64                                @@System
    Upgrade  dbus-common-1:1.12.8-12.el8_3.noarch                       @baseos
    Upgraded dbus-common-1:1.12.8-11.el8.noarch                         @@System
    Upgrade  dbus-daemon-1:1.12.8-12.el8_3.x86_64                       @baseos
    Upgraded dbus-daemon-1:1.12.8-11.el8.x86_64                         @@System
    Upgrade  dbus-libs-1:1.12.8-12.el8_3.x86_64                         @baseos
    Upgraded dbus-libs-1:1.12.8-11.el8.x86_64                           @@System
    Upgrade  dbus-tools-1:1.12.8-12.el8_3.x86_64                        @baseos
    Upgraded dbus-tools-1:1.12.8-11.el8.x86_64                          @@System
    Upgrade  file-5.33-16.el8_3.1.x86_64                                @baseos
    Upgraded file-5.33-16.el8.x86_64                                    @@System
    Upgrade  file-libs-5.33-16.el8_3.1.x86_64                           @baseos
    Upgraded file-libs-5.33-16.el8.x86_64                               @@System
    Upgrade  kernel-headers-4.18.0-240.22.1.el8_3.x86_64                @baseos
    Upgraded kernel-headers-4.18.0-240.15.1.el8_3.x86_64                @@System
    Upgrade  kernel-tools-4.18.0-240.22.1.el8_3.x86_64                  @baseos
    Upgraded kernel-tools-4.18.0-240.15.1.el8_3.x86_64                  @@System
    Upgrade  kernel-tools-libs-4.18.0-240.22.1.el8_3.x86_64             @baseos
    Upgraded kernel-tools-libs-4.18.0-240.15.1.el8_3.x86_64             @@System
    Upgrade  python3-perf-4.18.0-240.22.1.el8_3.x86_64                  @baseos
    Upgraded python3-perf-4.18.0-240.15.1.el8_3.x86_64                  @@System
    Upgrade  systemd-239-41.el8_3.2.x86_64                              @baseos
    Upgraded systemd-239-41.el8_3.1.x86_64                              @@System
    Upgrade  systemd-libs-239-41.el8_3.2.x86_64                         @baseos
    Upgraded systemd-libs-239-41.el8_3.1.x86_64                         @@System
    Upgrade  systemd-pam-239-41.el8_3.2.x86_64                          @baseos
    Upgraded systemd-pam-239-41.el8_3.1.x86_64                          @@System
    Upgrade  systemd-udev-239-41.el8_3.2.x86_64                         @baseos
    Upgraded systemd-udev-239-41.el8_3.1.x86_64                         @@System
    Upgrade  zlib-1.2.11-16.2.el8_3.x86_64                              @baseos
    Upgraded zlib-1.2.11-16.el8_2.x86_64                                @@System
    Upgrade  zlib-devel-1.2.11-16.2.el8_3.x86_64                        @baseos
    Upgraded zlib-devel-1.2.11-16.el8_2.x86_64                          @@System
    Removed  kernel-4.18.0-240.1.1.el8_3.x86_64                         @@System
    Removed  kernel-core-4.18.0-240.1.1.el8_3.x86_64                    @@System
    Removed  kernel-debug-devel-4.18.0-240.1.1.el8_3.x86_64             @@System
    Removed  kernel-devel-4.18.0-240.1.1.el8_3.x86_64                   @@System
    Removed  kernel-modules-4.18.0-240.1.1.el8_3.x86_64                 @@System

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com