Rsync parity: remote shell and connection options #130
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FastSync supports SSH/TCP auto-detection. Rsync offers several connection flags:
Missing flags
-e, --rsh <COMMAND>— specify remote shell (e.g. --rsh='ssh -p 2222 -i key')--rsync-path <PATH>— path to fastsync-server on remote--blocking-io/--no-blocking-io--sockopts <OPTS>— custom TCP options--address <ADDRESS>— bind address for outgoing connections-4, --ipv4— prefer IPv4-6, --ipv6— prefer IPv6--password-file <FILE>— read daemon password from fileCurrent code
transport_ssh.c— hardcoded SSH command constructiontransport_tcp.c— getaddrinfo with AF_UNSPECconfig.h— no fields for custom SSH/rsh/address/ipv4/6Impact
--rsh: users need custom SSH ports, keys, jump hosts--rsync-path: binary not in remote $PATH--address/--ipv4/--ipv6: multi-homed hosts or IPv6-only networksImplementation notes
--rsh: replace hardcoded SSH with user command template--rsync-path: prepend to SSH remote argument--ipv4/--ipv6: set ai_family in getaddrinfo--sockopts: parse key=value, call setsockopt