ssh catch 22

Ed lists at precognet.com
Tue Nov 7 23:34:05 GMT 2006


On Tuesday 07 November 2006 22:53, you wrote:
...snip...
>
> You want to run the rsync command upon connection. Try to use:
>
> "command="/usr/bin/rsync --server --daemon --config=/foo/rsyncd.conf ."
> ,no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty
>   ssh-rsa [BASE64-encoded data of public key]
>
> This will cause rsync in server mode to show up on the server side of
> the encrypted connection.
> Now you can configure what is possible and not through /foo/rsyncd.conf,
> e.g. allow read only,
> chrooting etc.
>
> However, the client side still has to say "I want to archive", like this:
>
> rsync -av --rsh="ssh -l SSH_USER -i /someplace_safe/ssh_id_key"
> LOCAL_FILE RSYNC_USER at TARGET_MACHINE::RSYNC_MODULE
>
> if source is LOCAL_FILE
>
> rsync -av --rsh="ssh -l SSH_USER -i /someplace_safe/ssh_id_key"
> RSYNC_USER at TARGET_MACHINE::RSYNC_MODULE LOCAL_FILE
>
> if source is RSYNC_USER at TARGET_MACHINE::RSYNC_MODULE
>
> Best regards,
>
> -- David


Hi David,
thanks for your answer, I'll take a good look at it all tomorrow morning and 
put it to good use. :)

I also got an answer from Martin Schröder who sent me the following link: 
http://www.jdmz.net/ssh/

Thank you both!
 -Ed


More information about the rsync mailing list