Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-27-2003, 11:56 AM   #1
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
rsync->ssh port

word to your mother

I' ve got a small {config?} problem. I need to use rsync to connect to a remote machine whose rsync and ssh ports are non-standard. I can tell rsync to --port=xxxx but how do I tell rsync to tell ssh to use port xxxx on the remote machine? thanks in advance
Old 06-27-2003, 11:59 AM   #2
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
pfffffffft. nevermind. sorry. I just thought about the fact that I can specify --rsh='ssh -p xxxx -l xxxxxx' to rsync. Sorry !
Old 05-27-2007, 08:42 PM   #3
LQ Newbie
Registered: Jun 2004
Location: Sydney, Australia
Distribution: RedHat and Debian
Posts: 19

Rep: Reputation: 0
Found what I think is a more elegant solution here

In ~/.ssh/config put:
Host remote
user gary
port 222
... if you wish to use 'remote' as an alias for ''

Alternatively, just use:
user gary
port 222
... if you don't wish to use 'remote' as the alias.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
auto ssh, and the rsync Swakoo Linux - Networking 5 08-25-2005 06:00 AM
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 AM.

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