Rex icon indicating copy to clipboard operation
Rex copied to clipboard

cannot sync to server over non-standard ssh port

Open sdondley opened this issue 5 years ago • 0 comments

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.

sdondley avatar May 09 '20 14:05 sdondley