ssh & rsync equivalence?

Morgan Read mstuff at read.org.nz
Sun Mar 29 04:15:58 GMT 2009


Hello Folks

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

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

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


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

[root at morgansoldmachine ~]# ssh -t rsync at 192.168.1.40 sudo rsync
-avzAXHn --delete-after -e 'ssh -i /home/rsync/.ssh/id_dsa' /etc
root at 192.168.1.100:/media/bigdisk/morgansmachine/etc
root at 192.168.1.100's password:
Permission denied, please try again.
root at 192.168.1.100's password:
Permission denied, please try again.
root at 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 at 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!
http://www.fsfla.org/svnwiki/selibre/linux-libre/freed-ora


More information about the rsync mailing list