Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to define custom SSH port for rsync #3

Open
kemuri opened this issue Feb 20, 2014 · 2 comments
Open

Ability to define custom SSH port for rsync #3

kemuri opened this issue Feb 20, 2014 · 2 comments

Comments

@kemuri
Copy link

kemuri commented Feb 20, 2014

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.

@moll
Copy link
Owner

moll commented Feb 21, 2014

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.

@kemuri
Copy link
Author

kemuri commented Feb 21, 2014

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants