(I don´t know how to edit comments) If you "-e ssh -6", rsync still add a -4... so you end up with "ssh -6 ... -4 ..." and the problem remain.
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to rsync in Ubuntu. https://bugs.launchpad.net/bugs/2096914 Title: rsync 3.3.0-1ubuntu0.1 patch breaks IPv6 over SSH: "ssh: Could not resolve hostname x: Name or service not known" Status in rsync package in Ubuntu: Confirmed Bug description: The security upgrade of rsync from 3.3.0-1 (oracular) to 3.3.0-1ubuntu0.1 (oracular-updates) breaks my current rsync over SSH backup for an IPv6-only target host!: rsync -a --delete -s --rsh="ssh -vvvv" -p 22 /tmp/emptydir/ ad...@ipv6only.reachable.nas:/share/CACHEDEV3_DATA/targetdir 3.3.0-1ubuntu0.1 outputs here: OpenSSH_9.7p1 Ubuntu-7ubuntu4.1, OpenSSL 3.3.1 4 Jun 2024 debug1: Reading configuration data /etc/ssh/ssh_config [...] debug3: resolve_host: lookup ipv6only.reachable.nas:22 ssh: Could not resolve hostname ipv6only.reachable.nas: Name or service not known rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(232) [sender=3.3.0] while 3.3.0-1 outputs here: OpenSSH_9.7p1 Ubuntu-7ubuntu4.1, OpenSSL 3.3.1 4 Jun 2024 debug1: Reading configuration data /etc/ssh/ssh_config [...] debug3: resolve_host: lookup ipv6only.reachable.nas:22 debug3: channel_clear_timeouts: clearing debug3: ssh_connect_direct: entering debug1: Connecting to ipv6only.reachable.nas [2001:9e8:…] port 22. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rsync/+bug/2096914/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp