LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync->ssh port (http://www.linuxquestions.org/questions/linux-software-2/rsync-ssh-port-68480/)

lackluster 06-27-2003 11:56 AM

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

lackluster 06-27-2003 11:59 AM

pfffffffft. nevermind. sorry. I just thought about the fact that I can specify --rsh='ssh -p xxxx -l xxxxxx' to rsync. Sorry :)!

daggett 05-27-2007 08:42 PM

Found what I think is a more elegant solution here

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

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


All times are GMT -5. The time now is 01:45 PM.