Find the answer to your Linux question:
Results 1 to 3 of 3
rsync tells me 'no route to host'... [root@srchost]# rsync -avz --delete /source/ [desthost]:/dest/ connect to address [destipaddr]: No route to host Trying krb4 rsh... connect to address [destipaddr]: No route ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242

    Problem with rsync


    rsync tells me 'no route to host'...

    [root@srchost]# rsync -avz --delete /source/ [desthost]:/dest/
    connect to address [destipaddr]: No route to host
    Trying krb4 rsh...
    connect to address [destipaddr]: No route to host
    trying normal rsh (/usr/bin/rsh)
    [destfqdn]: No route to host
    rsync: connection unexpectedly closed (0 bytes read so far)
    rsync error: error in rsync protocol data stream (code 12) at io.c(165)

    ssh works fine, though...

    [root@srchost]# ssh [desthost]
    Last login: Fri Jun 8 14:32:15 2007 from [srcfqdn]
    [root@desthost ~]#

    rsync port is even open...

    [root@srchost]# telnet [desthost] 873
    Trying [destipaddr]...
    Connected to [destfqdn] ([destipaddr]).
    Escape character is '^]'.
    Connection closed by foreign host.
    [root@srchost]#

    So I'm not sure what's the problem with rsync. Really weird.

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I'm not sure why 'No route to host'.

    Try using ssh as remote shell instead of rsh.

    Option: -e ssh

  3. #3
    Banned
    Join Date
    Dec 2002
    Location
    Texas
    Posts
    242
    Quote Originally Posted by anomie View Post
    I'm not sure why 'No route to host'.

    Try using ssh as remote shell instead of rsh.

    Option: -e ssh
    Interestingly enough, that does get rsync working.
    So that's good news, I can get it working for now.
    Thanks for the suggestion, I didn't even think of it.

Posting Permissions

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