mina-rsync
mina-rsync copied to clipboard
Ability to define custom SSH port for rsync
It would be nice if one could define a custom ssh port for rsync to use. Adding it to the list of rsync options doesn't seem to work.
Hey!
I think you should be able to do it with any of the following paths:
- Use Rsync's
-e
option withset :rsync_options, %w[other options] + ["-e", "ssh -p 1022"]
- Pass port in the host name with
set :domain, "host:1022"
- Set default port for server in
~/.ssh/config
.
Let me know if any of those work for you.
Thanks, the + ["-e", "ssh -p 1022"] solved it, I tried to include this into the %w[other options] section. However, it would be nice if mina-rsync would use the same port that is defined in mina
set :port, '1111'
Great work btw, I was looking for this tool for a long time!