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

Can the syncoid SSH port be specified on the command line? #51

Closed
ewwhite opened this issue Sep 26, 2016 · 4 comments
Closed

Can the syncoid SSH port be specified on the command line? #51

ewwhite opened this issue Sep 26, 2016 · 4 comments

Comments

@ewwhite
Copy link

ewwhite commented Sep 26, 2016

A customer uses SSH port 2223 for the source server I'll be replicating from in syncoid. I have entries in /etc/ssh/ssh_config for the hostname to force port 2223:

Host *ancaste*
    Port 2223

I don't think syncoid honors this, so I'm looking for the cleanest way to be able to modify the SSH port on the fly without hardcoding the script.

@pferland
Copy link

Looking at the code for the syncoid script, on line 40, it has a check to see if $args{'sshport'} is set. So I am getting if you do -sshport=2223 it would take it.

@jimsalterjrs
Copy link
Owner

This is correct; sshport was a recently merged pull. It works as described.


Sent from my phone - please forgive any autocorrect / swipe errors.

On September 26, 2016 7:31:59 AM Phillip Ferland notifications@github.com
wrote:

Looking at the code for the syncoid script, on line 40, it has a check to
see if $args{'sshport'} is set. So I am getting if you do -sshport=2223 it
would take it.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#51 (comment)

@jimsalterjrs
Copy link
Owner

Syncoid should honor nearly anything set in ssh_config, including port
numbers, actually.


Sent from my phone - please forgive any autocorrect / swipe errors.

On September 26, 2016 7:21:03 AM Edmund White notifications@github.com wrote:

A customer uses SSH port 2223 for the source server I'll be replicating
from in syncoid. I have entries in /etc/ssh/ssh_config for the hostname to
force port 2223:

Host *ancaste*
    Port 2223

I don't think synced honors this, so I'm looking for the cleanest way to be
able to modify the SSH port on the fly without hardcoding the script.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#51

@ewwhite
Copy link
Author

ewwhite commented Sep 26, 2016

Yes, the -sshport=2223 works for me. Thank you.

@ewwhite ewwhite closed this as completed Sep 26, 2016
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

3 participants