LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync +ssh on different port? (http://www.linuxquestions.org/questions/linux-software-2/rsync-ssh-on-different-port-448112/)

masterross 05-24-2006 10:44 AM

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

macemoneta 05-24-2006 11:29 AM

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.

masterross 05-24-2006 12:26 PM

thank u macemoneta,

that is what i need :)

downhillgames 12-09-2008 02:07 PM

Quote:

Originally Posted by masterross (Post 2260712)
thank u macemoneta,

that is what i need :)

Me, too. Thanks dude (2 years late, but hey, better late than never! :p)

ppro 01-04-2011 01:31 PM

Quote:

Originally Posted by downhillgames (Post 3369491)
Me, too. Thanks dude (2 years late, but hey, better late than never! :p)

Me, too. Thanks dude (2 years late, but hey, better late than never! :p

heheheh

felipelalli 01-13-2011 10:43 AM

Quote:

Originally Posted by ppro (Post 4213013)
Me, too. Thanks dude (2 years late, but hey, better late than never! :p

heheheh

Me, too. Thanks dude (2 years late + 2 days, but hey, better late than never! :p

Brazen 03-01-2011 01:12 PM

Quote:

Originally Posted by felipelalli (Post 4223112)
Me, too. Thanks dude (2 years late + 2 days, but hey, better late than never! :p

Me, too. Thanks dude (4 years late + 282 days, but hey, better late than never! :p)

Reuti 03-01-2011 01:40 PM

It can even be shortcut when you have a ~/.ssh/config:
Code:

Host foobar
    Port 8023
    User the_user_example
    Hostname the.host.example

and issue:
Code:

rsync -av --progress --inplace --rsh=ssh somefile foobar:somedir
Although the thread is old, the usage and technics still apply.

mtl 06-30-2011 12:50 PM

Quote:

Originally Posted by Reuti (Post 4275496)
It can even be shortcut when you have a ~/.ssh/config:
Code:

Host foobar
    Port 8023
    User the_user_example
    Hostname the.host.example

and issue:
Code:

rsync -av --progress --inplace --rsh=ssh somefile foobar:somedir

Thanks for the tip, 5+ years in the future! :)

ajorpheus 08-09-2011 01:23 PM

Ahh .. still works ..
 
The command above with the 'rsh' option still works for me .. Yayyy !!!

shashank86 12-02-2011 06:51 AM

Quote:

Originally Posted by macemoneta (Post 2260607)
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 You. From 2011!

diegors 02-16-2012 07:02 PM

Quote:

Originally Posted by macemoneta (Post 2260607)
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.

Me, too. Thanks dude (5.73 years late, but hey, better late than never! )
Quote:

Originally Posted by Reuti
It can even be shortcut when you have a ~/.ssh/config:
Code:
Host foobar
Port 8023
User the_user_example
Hostname the.host.example
and issue:
Code:
rsync -av --progress --inplace --rsh=ssh somefile foobar:somedir
Although the thread is old, the usage and technics still apply.

Me, too. Thanks dude (1.12 years late, but hey, better late than never! )


:)

Edit: I just subscribe to say: Thanks =)

randomdude 04-27-2012 02:37 PM

Quote:

Originally Posted by macemoneta (Post 2260607)
rsync -av --progress --inplace --rsh='ssh -p8023' somefile user@host:somedir/

Let me register here just to thank you from the future, as the other people here.

mickza 05-01-2012 05:15 AM

Quote:

Originally Posted by macemoneta (Post 2260607)
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.

Many thanks - now I can backup my IPCop Update Accelerator cache, damned if I could figure this out from the rsync man page.

Spatik 06-05-2012 04:39 AM

Nice
 
Thanks dude....;)


All times are GMT -5. The time now is 03:39 PM.