cannot sync to server over non-standard ssh port
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
See this line in the code in the sync function for Rex::Commands:Rsync: https://metacpan.org/release/Rex/source/lib/Rex/Commands/Rsync.pm#L118
That line makes a call to this helper function: https://metacpan.org/source/FERKI/Rex-1.10.0/lib/Rex/Helper/IP.pm#L25
It looks like the function expects the port to be attached to the server name and separated by colon like server:25000. The way the sync function code is currently written, the default port never gets changed in the helper function so it's not possible to rsync when the port is not port 22, the default value passed to the helper function.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in lib/Rex/Commands/Rsync.pm at the sync function line linked in the issue, then inspect the referenced Rex::Helper::IP helper in lib/Rex/Helper/IP.pm. Verify how the server and port are passed, and confirm that rsync works when using a non-standard SSH port such as 25000.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100