Re: How can rsync with ssh be used on a non standard ssh port

2008-11-17 Thread eculp

Vincent Hoffman <[EMAIL PROTECTED]> escribió:


[EMAIL PROTECTED] wrote:

I need to use rsync for backup to another machine using a nonstandard
port for ssh. 722.





I've tried many variants but none have worked.  Any suggestions would
be greatly appreciated.


Hi,
-e 'ssh -p722' should do it in theory
I'm not certain if rsync over ssh honours the SSH_CONFIG(5) file(s) it
should do though. If so it could also be added on a per host basis there.
something like

Host foo.example.com
Port 722
User myuser
IdentityFile /path/to/custom/key


Hi Vince,

I tested the ssh_config changes and indeed they work beautifully and  
give me an added layer of flexibility.  This certainly seems to be the  
optimal solution for for different host configurations  without having  
to change remote scripts.


I hadn't even considered it.  Again DUH! Hello!

I can't thank you enough.

ed
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread eculp

Vincent Hoffman <[EMAIL PROTECTED]> escribió:


[EMAIL PROTECTED] wrote:

I need to use rsync for backup to another machine using a nonstandard
port for ssh. 722.

For example, when I test using my translation of the man pages:

rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST

I use:

rsync -avz /almacen/testDir rsync://backkup.net:722/backup/

the error generated is:

rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather
than greeting
rsync error: error starting client-server protocol (code 5) at
main.c(1504) [sender=3.0.4]

I've tried many variants but none have worked.  Any suggestions would
be greatly appreciated.


Hi,
-e 'ssh -p722' should do it in theory
I'm not certain if rsync over ssh honours the SSH_CONFIG(5) file(s) it
should do though. If so it could also be added on a per host basis there.
something like

Host foo.example.com
Port 722
User myuser
IdentityFile /path/to/custom/key

Thanks, Vince.  That is a ver interesting solution.  I'm going to give  
it a try in the morning.


ed
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread eculp

Jeremy Chadwick <[EMAIL PROTECTED]> escribió:


On Sun, Nov 16, 2008 at 09:43:39AM -0600, [EMAIL PROTECTED] wrote:

Test example.

I need to sync a directory from my machine to another that is using port
722 rather than 22.  I can use ssh -pm722, scp -P 722 fine but I prefer
rsync for the backup due to configuration flexibility.  The man says:

rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST

Which I translate to something like:

rsync -avz /almacen/testDir rsync://backupMachine.com:722/backup/

but I get the following:

rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather than
greeting
rsync error: error starting client-server protocol (code 5) at
main.c(1504) [sender=3.0.4]

I've tried variants to the point of no return.  Help would be appreciated.


Check out the -e flag for rsync.  There are examples of how to use this
inside of the rsync(1) man page.


I can't believe I missed that.  Unfortunately I found the other first.  
 Just for the record. a simple:


rsync -avze 'ssh -p 722' /almacen/TestDir backupMachine.com:/backup/

worked as expected.

Thanks,

ed

P.S. I also apologize to the list for sending two emails in the  
morning.  I thought I had canceled the first but yet another error.  I  
shouldn't work on Sundays ;)


--
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread Ron Wilhoite

On 11/16/2008 10:50 AM [EMAIL PROTECTED] wrote:
I need to use rsync for backup to another machine using a nonstandard 
port for ssh. 722.


For example, when I test using my translation of the man pages:

rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST

I use:

rsync -avz /almacen/testDir rsync://backkup.net:722/backup/

the error generated is:

rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather than 
greeting
rsync error: error starting client-server protocol (code 5) at 
main.c(1504) [sender=3.0.4]




I believe you want the -e option. Example from the man page:

-e 'ssh -p 2234'

In your case, rsync -e 'ssh -p 722' -avz 

The [:PORT] you tried appears to be for connecting to an rsync daemon 
listening on a non-standard port.


Ron


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread Vincent Hoffman
[EMAIL PROTECTED] wrote:
> I need to use rsync for backup to another machine using a nonstandard
> port for ssh. 722.
>
> For example, when I test using my translation of the man pages:
>
> rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST
>
> I use:
>
> rsync -avz /almacen/testDir rsync://backkup.net:722/backup/
>
> the error generated is:
>
> rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather
> than greeting
> rsync error: error starting client-server protocol (code 5) at
> main.c(1504) [sender=3.0.4]
>
> I've tried many variants but none have worked.  Any suggestions would
> be greatly appreciated.
>
Hi,
-e 'ssh -p722' should do it in theory
I'm not certain if rsync over ssh honours the SSH_CONFIG(5) file(s) it
should do though. If so it could also be added on a per host basis there.
something like

Host foo.example.com
Port 722
User myuser
IdentityFile /path/to/custom/key

Vince
> Thanks,
>
> ed
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread Jeremy Chadwick
On Sun, Nov 16, 2008 at 09:43:39AM -0600, [EMAIL PROTECTED] wrote:
> Test example.
>
> I need to sync a directory from my machine to another that is using port 
> 722 rather than 22.  I can use ssh -pm722, scp -P 722 fine but I prefer 
> rsync for the backup due to configuration flexibility.  The man says:
>
> rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST
>
> Which I translate to something like:
>
> rsync -avz /almacen/testDir rsync://backupMachine.com:722/backup/
>
> but I get the following:
>
> rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather than 
> greeting
> rsync error: error starting client-server protocol (code 5) at  
> main.c(1504) [sender=3.0.4]
>
> I've tried variants to the point of no return.  Help would be appreciated.

Check out the -e flag for rsync.  There are examples of how to use this
inside of the rsync(1) man page.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread eculp
I need to use rsync for backup to another machine using a nonstandard  
port for ssh. 722.


For example, when I test using my translation of the man pages:

rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST

I use:

rsync -avz /almacen/testDir rsync://backkup.net:722/backup/

the error generated is:

rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather  
than greeting
rsync error: error starting client-server protocol (code 5) at  
main.c(1504) [sender=3.0.4]


I've tried many variants but none have worked.  Any suggestions would  
be greatly appreciated.


Thanks,

ed
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread eculp

Test example.

I need to sync a directory from my machine to another that is using  
port 722 rather than 22.  I can use ssh -pm722, scp -P 722 fine but I  
prefer rsync for the backup due to configuration flexibility.  The man  
says:


rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST

Which I translate to something like:

rsync -avz /almacen/testDir rsync://backupMachine.com:722/backup/

but I get the following:

rsync: server sent "SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901" rather  
than greeting
rsync error: error starting client-server protocol (code 5) at  
main.c(1504) [sender=3.0.4]


I've tried variants to the point of no return.  Help would be appreciated.

Thanks,

ed
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"