Find the answer to your Linux question:
Results 1 to 2 of 2
I attempted an rsync as follows: Code: /usr/bin/rsync -avz --rsh='ssh -p1022' --delete $REMOTEHOST:$REMOTEHOMEDIR/ $LOCALHOMEDIR 2>&1 >> $LOGFILE I get the following error: Code: ssh_exchange_identification: Connection closed by remote host rsync: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    11

    rsync failure


    I attempted an rsync as follows:

    Code:
      /usr/bin/rsync -avz --rsh='ssh -p1022' --delete $REMOTEHOST:$REMOTEHOMEDIR/ $LOCALHOMEDIR   2>&1  >> $LOGFILE
    I get the following error:

    Code:
      ssh_exchange_identification: Connection closed by remote host
    rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
    rsync error: error in rsync protocol data stream (code 12) at io.c(459) [receiver=2.6.8]
    hostname:/home/ut1khn/bin #
    I am currently investigating with Network to find out if I have a firewall issue. Hypothetically, if I do not have a firewall issue, is it true that in order for this to work I should have entries in either rhosts or host.equiv ? to make this work?

  2. #2
    Just Joined!
    Join Date
    Jul 2011
    Posts
    11
    Replying to my own thread: I did indeed have a firewall issue. FYI, I do not have entries in either rhosts or host.equiv and rsync is now working fine. Sorry to have bothered you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •