ssh & rsync equivalence?

Morgan Read
Sun, 29 Mar 2009 04:16:04 -0000

Hello Folks

Can anyone help with why I can use ssh like so:

[root@morgansoldmachine ~]# ssh -t rsync@192.168.1.40 sudo ssh -i
/home/rsync/.ssh/id_dsa root@192.168.1.100
Last login: Tue Mar 24
21:32:51 2009 from morgansmachine.lan
[root@morgansoldmachine ~]# logout

Connection to 192.168.1.100 closed.
Connection to 192.168.1.40 closed.
[root@morgansoldmachine ~]#


But, when I use the same command with the -e option via rsync it fails:

[root@morgansoldmachine ~]# ssh -t rsync@192.168.1.40 sudo rsync
-avzAXHn --delete-after -e 'ssh -i /home/rsync/.ssh/id_dsa' /etc
root@192.168.1.100:/media/bigdisk/morgansmachine/etc
root@192.168.1.100's password:
Permission denied, please try again.
root@192.168.1.100's password:
Permission denied, please try again.
root@192.168.1.100's password:
Permission denied (publickey,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.5]
Connection to 192.168.1.40 closed.
[root@morgansoldmachine ~]#


I lost all my hair getting ssh sorted, only to have it fail when run via
rsync...

Many thanks,
Morgan.
--
Getting errors: "There are problems with the signature" (or similar)?
Update your system by installing certificates from CAcert Inc, see here:
http://wiki.cacert.org/wiki/BrowserClients?#head-259758ec5ba51c5205cfb179cf60e0b54d9e378b
Or, if Internet Explorer is your default browser, simply click this link:
http://www.cacert.org/index.php?id=17

Morgan Read
NEW ZEALAND
<mailto:mstuffATreadDOTorgDOTnz>

fedora + freedom; fact || fiction?
http://fedoraproject.org/wiki/Overview
get freed-ora!