mina-rsync icon indicating copy to clipboard operation
mina-rsync copied to clipboard

Ability to define custom SSH port for rsync

Open kemuri opened this issue 11 years ago • 2 comments

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.

kemuri avatar Feb 20 '14 19:02 kemuri

Hey!

I think you should be able to do it with any of the following paths:

  • Use Rsync's -e option with set :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.

moll avatar Feb 21 '14 01:02 moll

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!

kemuri avatar Feb 21 '14 12:02 kemuri