Closed fbicknel closed 5 years ago
There's a couple of places in the code where SSH_DEFAULT_OPTIONS is set to no. That's great for ssh and scp, but rsync barks at it.
SSH_DEFAULT_OPTIONS
$ rsync -avrz --dry-run foohost:FLMPOC/ . All keys already loaded rsync: -oUseRoaming=no: unknown option rsync error: syntax or usage error (code 1) at main.c(1572) [client=3.1.1] $
I found a workaround by setting SSH_DEFAULT_OPTIONS='' on the command line when using rsync:
SSH_DEFAULT_OPTIONS=''
alias rsync='SSH_DEFAULT_OPTIONS= BINARY_SSH=rsync /usr/local/bin/ssh-ident'
Possible duplicate of #24
Might be duplicate-adjacent, I admit. But it's a whole lot more succinct. :)
The fork at https://github.com/ssh-ident/ssh-ident1 allows to define ssh options per identity and binary.
There's a couple of places in the code where
SSH_DEFAULT_OPTIONS
is set to no. That's great for ssh and scp, but rsync barks at it.I found a workaround by setting
SSH_DEFAULT_OPTIONS=''
on the command line when using rsync:alias rsync='SSH_DEFAULT_OPTIONS= BINARY_SSH=rsync /usr/local/bin/ssh-ident'