rsync +ssh on different port?
hi,
i want to connect via rsync to remote machine with ssh running on different port can u assist me? thanks, Ross |
The syntax you want is, for example:
rsync -av --progress --inplace --rsh='ssh -p8023' somefile user@host:somedir/ In the example above, rsync will use ssh on port 8023. |
thank u macemoneta,
that is what i need :) |
Quote:
|
Quote:
heheheh |
Quote:
|
Quote:
|
It can even be shortcut when you have a ~/.ssh/config:
Code:
Host foobar Code:
rsync -av --progress --inplace --rsh=ssh somefile foobar:somedir |
Quote:
|
Ahh .. still works ..
The command above with the 'rsh' option still works for me .. Yayyy !!!
|
Quote:
|
Quote:
Quote:
:) Edit: I just subscribe to say: Thanks =) |
Quote:
|
Quote:
|
Nice
Thanks dude....;)
|
Ok so this is the norm here, so I posting to say thanks for the tip, it is still working in 2012 :)
Thank you from the future !!! |
Thanks. I am from six years later.
|
The response from macemoneta (#2) helped me too. Thank you!
|
thanks from 2012
|
I registered just to say.. Thanks dude!
I'm from 2 days before the end of the world :D |
The world is not over.
Thanks from 2013 |
Thanks
It's the future here, and I want to thank you for this, it's awesome.
|
Thanks!
keeping up traditions 7 years later
|
One more thank from the furture here.
|
I just registered to tell you tnx! 7 years and 7 days later this was just what I was needed.
|
an other thing you can do, 7 years later, is to create a config file in your ~/.ssh/ directory along these lines:
Code:
ssma-imac:.ssh ssma$ cat config |
Hey! From July 2013 - thanks macemoneta - still working :)
(and rsync still does not have a more expedite way! Also thanks lleb for the tip. Very good. (I hate to register in forums... this is an exception for tradition sake only!) |
Here from seven years later to give thanks for all contributors, and to add my little coin:
To use rsync using a key: rsync -av --progress --inplace --rsh='ssh -p8023 -i /somepath/private.key' somefile user@host:somedir/ |
Quote:
|
thanks
|
Quote:
|
Quote:
|
Thank you ;-)
|
Thank you from 2014 ! :)
|
Many thanks from 2015! :-)
|
2015 -- over a decade later, and this post is still relevant! :-)
|
from Sept. 2015, thanks! :)
|
From near 10 years in the future, I must thank you. The sentence just save my day ;)
|
Thanks.
It's Thu 18 Feb 22:55:40 GMT 2016. You've been helping people get their rsync right for almost 10 years now :) |
Thanks from almost 12 years later
Thanks from almost 12 years later
:D |
Quote:
Me too. Thanks dude (Really almost 12 years later (just a few days), but hey, better late than never!) Quote:
So, Thanks dude (Really more than 6 years later, but hey, better late than never!) Quote:
Hope all is fine with all you out there! |
Me, too. Thanks dude (13 years, 2 months, 16 days late, but hey, better late than never!) :p
hehehehe Seriously though, thanks macemoneta! You haven't been on since 02/20/2017 but I hope you're alive and proud of the help you've provided to thousands over the last decade and a half. God bless your soul. |
All times are GMT -5. The time now is 06:20 AM. |