ccontavalli / ssh-ident

Different agents and different keys for different projects, with ssh.
Other
963 stars 71 forks source link

SSH_DEFAULT_OPTIONS causes grief with rsync #41

Closed fbicknel closed 5 years ago

fbicknel commented 7 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.

$ 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:

alias rsync='SSH_DEFAULT_OPTIONS= BINARY_SSH=rsync /usr/local/bin/ssh-ident'

Jamesking56 commented 6 years ago

Possible duplicate of #24

fbicknel commented 5 years ago

Might be duplicate-adjacent, I admit. But it's a whole lot more succinct. :)

maddes-b commented 2 years ago

The fork at https://github.com/ssh-ident/ssh-ident1 allows to define ssh options per identity and binary.