Skip to content

SSH_CMD_ARGS: not used by SCRIPT_BEFORE nor SCRIPT_AFTER #194

Closed as not planned
@cyril23

Description

@cyril23
  • Background: I need to force IPv4 connection to my server, both in rsync and ssh.
    • 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
  • When using rsync, I can just pass the -4 Parameter to enforce IPv4 connection, e.g. ARGS: '-a4 --delete --no-o --no-g' and use SSH_CMD_ARGS: '-o StrictHostKeyChecking=no, -o AddressFamily=inet' which works perfectly
  • But for the SCRIPT_BEFORE and SCRIPT_AFTER the SSH_CMD_ARGS is not used actually within the ssh command. Instead, a hardcoded -o StrictHostKeyChecking=no is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues without activity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions