PDA

View Full Version : [SOLVED] FC 14 - RHEL5 - Rsync and ssh issue



SteveT
25th July 2011, 08:46 AM
I am running an FC14 (2.6.35.13-92) laptop and RHEL5 (2.6.18-274) server. I use the server partly as a backup to the laptop and use rsync (and ssh) to copy the files.

This has been working fine. I have migrated the laptop from FC9, to FC12 and to FC14 and the process has worked fine all that time.

On Thursday the server had an extensive update, and since that update, the rsync fails (so it looks like the problem is on the server). The process I tend to go through is:

1) Log onto the server using SSH.
2) Upgrade the server with any outstanding updates.
3) Start the backup of the laptop from the server.

The error I now get is:
(Linux)T300 :stevet : /u> sudo rsync -auvOPk --delete retsol610:/u/ .
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) [receiver]
rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]


Obviously, rsync is using SSH - so my question here is, how can I see what options rsync is passing to ssh?


PS I can manually ssh back to the laptop perfectly ok.

PPS -vvv on rsync gives:
(Linux)T300 :stevet : /u> sudo rsync -auvOPk -vvv --delete retsol610:/u/ .
cmd=<NULL> machine=<NULL> user=<NULL> path=/u/
cmd[0]=ssh cmd[1]=(null) cmd[2]=rsync cmd[3]=--server cmd[4]=--sender cmd[5]=-vvvvulkogDtpre.is cmd[6]=. cmd[7]=/u/
opening connection using: ssh
note: iconv_open("ISO-8859-15", "ISO-8859-15") succeeded.
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) [receiver]
_exit_cleanup(code=12, file=io.c, line=600): entered
rsync error: unexplained error (code 255) at io.c(600) [receiver=3.0.6]
_exit_cleanup(code=12, file=io.c, line=600): about to call exit(255)

tfredian
26th July 2011, 02:01 PM
I ran into the same issue and it seems like an rsync bug to me. I did find that supplying the username@ in front of the destination host seems to avoid the ssh syntax error.

Try: sudo rsync -auvOPk --delete root@retsol610:/u/ .

SteveT
26th July 2011, 02:48 PM
I have never used the 'user@' option before and have never had an issue. But that has rectified it

Many thanks for the help.