bk@e8s.de [unison-users]
2015-12-13 19:12:08 UTC
Hi,
I needed to change my unison configuration to use a non standard port for ssh and realized, that it doesnât work with rsync. My config looked liked this and worked fine:
root = /local/path
root = ssh://***@host//path
auto = true
batch = true
sortbysize = true
copythreshold = 1000
perms = 0
maxthreads = 4
[⊠skipped all the ignores]
To change the default port I altered the URL in the second line to root = ssh://***@host:PORT//path. This worked fine until unison invoked rsync. Rsync still tried to connect to port 22. To work around this I added the following lines to the config and it worked again:
copyprog = rsync -e "ssh -p 2201" --inplace --compress
copyprogrest = rsync -e "ssh -p 2201" --partial --inplace --compress
However, having to specify the port at three different locations seems a bit awkward to me. Am I missing a unison option here or is this buggy behavior?
Thanks for any replies
Ben
I needed to change my unison configuration to use a non standard port for ssh and realized, that it doesnât work with rsync. My config looked liked this and worked fine:
root = /local/path
root = ssh://***@host//path
auto = true
batch = true
sortbysize = true
copythreshold = 1000
perms = 0
maxthreads = 4
[⊠skipped all the ignores]
To change the default port I altered the URL in the second line to root = ssh://***@host:PORT//path. This worked fine until unison invoked rsync. Rsync still tried to connect to port 22. To work around this I added the following lines to the config and it worked again:
copyprog = rsync -e "ssh -p 2201" --inplace --compress
copyprogrest = rsync -e "ssh -p 2201" --partial --inplace --compress
However, having to specify the port at three different locations seems a bit awkward to me. Am I missing a unison option here or is this buggy behavior?
Thanks for any replies
Ben