Closed as not planned
Description
- Background: I need to force IPv4 connection to my server, both in
rsync
andssh
.- The server IP address may change sometimes. Therefore I need to use its FQDN as
REMOTE_HOST
. - The
REMOTE_HOST
has both A and AAAA DNS records - The
REMOTE_HOST
ssh server listens to SSH connections in both IPv4 and IPv6 - Because of firewall settings in a project I may connect via IPv4 only to the
REMOTE_HOST
- The server IP address may change sometimes. Therefore I need to use its FQDN as
- When using rsync, I can just pass the
-4
Parameter to enforce IPv4 connection, e.g.ARGS: '-a4 --delete --no-o --no-g'
and useSSH_CMD_ARGS: '-o StrictHostKeyChecking=no, -o AddressFamily=inet'
which works perfectly-4
prefers IPv4 connection forrsync
, see https://linux.die.net/man/1/rsyncAddressFamily=inet
enforces IPv4-only connection forssh
, see https://linux.die.net/man/5/ssh_config
- But for the
SCRIPT_BEFORE
andSCRIPT_AFTER
theSSH_CMD_ARGS
is not used actually within thessh
command. Instead, a hardcoded-o StrictHostKeyChecking=no
is used