connection unexpectedly closed... solved

Wayne Davison wayned at samba.org
Thu Jan 13 20:49:08 GMT 2005


On Thu, Jan 13, 2005 at 08:17:42PM +0000, Nigel Gilbert wrote:
> Interestingly, when I use ssh to execute a non-existent command on the
> remote machine, no error message is returned

Fascinating.  Perhaps your ssh isn't returning the stderr output?  Try
these commands:

    ssh root at sandi 'missing-rsync 2>&1'
    ssh root at sandi 'echo testing >&2'

I see both the not-found error on stdout (from the first command) and
the word "testing" on stderr (from the second command).  If you see no
error for the first command, then it looks like your /bin/sh is not
generating an error for the remote-command failure.  If you see the
output from the first command but not the second, I'd suspect the
ability of Sun's ssh to send back the stderr output of the process.

You should also check for things that might affect the running of
remote commands, such as filter scripts run from .ssh/authorized_keys.
(If not written correctly, they might interfere with the stderr
output.)

..wayne..


More information about the rsync mailing list