LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2006, 10:44 AM   #1
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Rep: Reputation: 17
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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-24-2006, 11:29 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
11 members found this post helpful.
Old 05-24-2006, 12:26 PM   #3
masterross
Member
 
Registered: Nov 2005
Distribution: CentOS 7.x
Posts: 107

Original Poster
Rep: Reputation: 17
thank u macemoneta,

that is what i need
 
Old 12-09-2008, 02:07 PM   #4
downhillgames
LQ Newbie
 
Registered: Aug 2005
Location: Grand Rapids, MI
Distribution: *Buntus
Posts: 19

Rep: Reputation: 0
Quote:
Originally Posted by masterross View Post
thank u macemoneta,

that is what i need
Me, too. Thanks dude (2 years late, but hey, better late than never! )
 
Old 01-04-2011, 01:31 PM   #5
ppro
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by downhillgames View Post
Me, too. Thanks dude (2 years late, but hey, better late than never! )
Me, too. Thanks dude (2 years late, but hey, better late than never!

heheheh
 
Old 01-13-2011, 10:43 AM   #6
felipelalli
LQ Newbie
 
Registered: Jan 2011
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by ppro View Post
Me, too. Thanks dude (2 years late, but hey, better late than never!

heheheh
Me, too. Thanks dude (2 years late + 2 days, but hey, better late than never!
 
Old 03-01-2011, 01:12 PM   #7
Brazen
LQ Newbie
 
Registered: Oct 2004
Distribution: Fedora
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by felipelalli View Post
Me, too. Thanks dude (2 years late + 2 days, but hey, better late than never!
Me, too. Thanks dude (4 years late + 282 days, but hey, better late than never! )
 
Old 03-01-2011, 01:40 PM   #8
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
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.
 
1 members found this post helpful.
Old 06-30-2011, 12:50 PM   #9
mtl
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Reuti View Post
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!
 
Old 08-09-2011, 01:23 PM   #10
ajorpheus
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Ahh .. still works ..

The command above with the 'rsh' option still works for me .. Yayyy !!!
 
Old 12-02-2011, 06:51 AM   #11
shashank86
LQ Newbie
 
Registered: Jan 2011
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by macemoneta View Post
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!
 
Old 02-16-2012, 07:02 PM   #12
diegors
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by macemoneta View Post
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 =)
 
Old 04-27-2012, 02:37 PM   #13
randomdude
LQ Newbie
 
Registered: Apr 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by macemoneta View Post
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.
 
Old 05-01-2012, 05:15 AM   #14
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
Thumbs up

Quote:
Originally Posted by macemoneta View Post
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.
 
Old 06-05-2012, 04:39 AM   #15
Spatik
LQ Newbie
 
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
Smile Nice

Thanks dude....
 
  


Reply

Tags
port, rsh, rsync, ssh



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync->ssh port lackluster Linux - Software 2 05-27-2007 08:42 PM
rsync and ssh? IchBin Linux - Newbie 4 02-13-2005 03:41 PM
rsync and ssh port ohcarol Linux - Software 2 12-22-2004 10:29 AM
Rsync vs ssh satimis Linux - Software 7 04-04-2004 06:58 AM
Rsync and SSH Phaethar Linux - Software 3 03-22-2004 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration