LinuxQuestions.org

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

SpawnOfSatan 07-03-2012 05:23 AM

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 !!!

wzyboy 07-09-2012 03:08 AM

Thanks. I am from six years later.

rickumali 08-27-2012 07:42 AM

The response from macemoneta (#2) helped me too. Thank you!

luc2 10-18-2012 04:33 AM

thanks from 2012

danky78 12-19-2012 06:15 AM

I registered just to say.. Thanks dude!

I'm from 2 days before the end of the world :D

avery 02-07-2013 01:34 PM

The world is not over.
Thanks from 2013

Democrite 02-20-2013 05:01 PM

Thanks
 
It's the future here, and I want to thank you for this, it's awesome.

jero 04-07-2013 07:38 PM

Thanks!
 
keeping up traditions 7 years later

thanhtd 04-22-2013 10:13 PM

One more thank from the furture here.

nemke 06-01-2013 11:50 AM

I just registered to tell you tnx! 7 years and 7 days later this was just what I was needed.

lleb 06-01-2013 05:23 PM

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
Host        my_url.com
        Port                2222

Host        11.11.11.11
        Port                2222

Host        *
        Protocol        2
        ForwardAgent        yes
        ForwardX11        yes
        ServeraliveInterval        30
        ServerAliveCountMax        5
        TCPKeepAlive        yes

this way when you ssh user@my_url.com you do not need to pass the -p flag at all, this includes your rsync.

smacedo 07-18-2013 01:19 PM

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!)

chejov 08-09-2013 07:31 AM

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/

lleb 08-10-2013 11:11 AM

Quote:

Originally Posted by masterross (Post 2260543)
hi,

i want to connect via rsync to remote machine with ssh running on different port

can u assist me?

thanks,
Ross

check out my sig on the HOW TO create a config file for your ssh. This way you can rsync -<options> user@server without having to worry about quoting and ports ext...

sirius2x 11-29-2013 06:35 AM

thanks


All times are GMT -5. The time now is 12:32 AM.