Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsync always uses ssh -4 as default remote shell, even when --ipv6 is specified #648

Closed
osnyx opened this issue Oct 9, 2024 · 2 comments

Comments

@osnyx
Copy link

osnyx commented Oct 9, 2024

I'd like to rsync via ssh to a host only reachable via IPv6. This fails at the SSH connection stage.

It turns out that ssh is always invoked to use IPv4 only. This happens even when specifying --ipv6 to rsync.

/nix/store/f2w6bm4bpgdl3ih1ch6m3dacr3l8fawv-rsync-3.3.0/bin/rsync --ipv6 -rlptzvvv --progress --delete --exclude=.git --exclude=.vscode --exclude=result --exclude=channels/ --exclude=.mypy_cache . testhost:fc-nixos
opening connection using: ssh -4 testhost rsync --server -vvvltprze.iLsfxCIvu --delete . fc-nixos  (9 args)
ssh: connect to host testhost port 22: Network is unreachable
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(231) [sender=3.3.0]
[sender] _exit_cleanup(code=12, file=io.c, line=231): about to call exit(255)

I can barely imagine that I'm the first one to notice such a bug, so am I possibly doing something wrong here?

Version: rsync-3.3.0
Platform: macOS, arm64, package installed from nixpkgs

@schmittlauch
Copy link

Interestingly, under Linux (amd64), the nixpkgs package correctly uses ssh -6. And an rsync-3.3.0 installed via homebrew on macOS works correctly.

So this might be indeed a Nix packaging issue specific to macOS. I'll keep you updated on this.

@osnyx
Copy link
Author

osnyx commented Oct 17, 2024

Turns out this is fixed by #558, the fix just isn't included in a release yet.

@osnyx osnyx closed this as completed Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants