Rsync is a great tool but can be a pain if you have to jump through hoops to connect via ssh such as connecting via a different port.
A simple solution is to use the -e flag (also knows as –rsh=COMMAND). This flag allows you manually define the ssh command to use when connecting
rsync -e 'ssh -p2020' -rav ./* user@server:
Will allow me to connect to a server with SSH listening on port 2020
Like this:
Like Loading...
Related
Published by Matt Cockayne
Matt is the currently working as a Senior Linux Sysadmin for the Medicines Discovery Catapult and also and Scout Leader.
Having tried his hand a few different careers he finds that he is happiest working with code. As a framework contributor and serial tinkerer Matt has spent a long time working on being the best Software Engineer he can be.
As a Scout Leader he spends a lot of his time devoted to teaching valuable life skills to kids aged 7-18. He is a firm believer that being a Good Scout and Great Developer go hand in hand.
View all posts by Matt Cockayne