More trouble with -e ! [Was: Re: Trouble with -e ...]

Morgan Read mstuff at read.org.nz
Tue Mar 24 09:35:46 GMT 2009


I've followed-up the original question bottom (very strange!).

But, that answer just led directly to this question.
Why doesn't this work:
[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 ~]#

When this does work:
[root at morgansoldmachine ~]# ssh -t rsync at 192.168.1.40 sudo ssh -i
/home/rsync/.ssh/id_dsa root at 192.168.1.100Last 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 ~]#
???

Aren't they equivalent?  Why am I being asked for a password for ssh via
rsync when I have successfully set up ssh for public key authentication?
 Can anyone shed some light, I'm in the dark.

Regards,
Morgan.

On 23/03/09 23:46, Paul Slootman wrote:
> On Sun 22 Mar 2009, Morgan Read wrote:
> 
>> But yet:
>> [root at morgansoldmachine ~]# ssh -t rsync at morgansmachine sudo rsync -n
>> --rsh=’/usr/bin/ssh -i /home/rsync/.ssh/id_dsa’ /etc
>> root at morgansoldmachine:/media/bigdisk/morgansmachine/etc
>> rsync: Failed to exec \#342\#200\#231/usr/bin/ssh: No such file or
>> directory (2)
> 
> You're not using normal shell quotes...
> If I cut and paste your --rsh line into this:
> $ LANG=C cat -v
> I get the following output:
> --rsh=M-bM-^@M-^Y/usr/bin/ssh -i /home/rsync/.ssh/id_dsaM-bM-^@M-^Y /etc
> 
> Those escapes match exactly the \#342\#200\#231 shown in your error
> message.
> 
> Use ' not ’ is the short version of this answer.

That has got to be the weirdest thing!  I type ' and it seems I got ’ !!
 I've scrolled back through my consol and sure enough they're ’ not ' ,
but how they got there I know not because when I type a ' now, ' is what
I get!!!


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