Hide Forgot
Description of problem: The following used to work in RHEL 5.6 and below: [root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR host-1:REMOTEDIR [root@host-2 ~]# However, after updating to RHEL 5.7, the commandline above no longer works. How reproducible: Always. Actual results: Results after updating to RHEL 5.7: [root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR host-1:REMOTEDIR usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-w tunnel:tunnel] [user@]hostname [command] rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(600) [sender=3.0.6] [root@host-2 ~]# Expected results: [root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR host-1:REMOTEDIR [root@host-2 ~]# Additional info: If I add the username option, and specify root@ before the hostname, it works: [root@host-2 ~]# /usr/bin/rsync --archive --one-file-system --numeric-ids --delete --quiet LOCALDIR root@host-1:REMOTEDIR [root@host-2 ~]# However, "man rsync" still claims the username option should be optional: "Access via remote shell: Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST] Push: rsync [OPTION...] SRC... [USER@]HOST:DEST" ...but it seems now it isn't.
This is a duplicate of #724041.
*** This bug has been marked as a duplicate of bug 724041 ***