Re: Rsync problem



Bernd Breitschaedel wrote:
Hello Newsgroup,


I'm not an network expert.

In our Institut i was able to use rsync with ssh for backup my data from
PC to linux server. Since we got a new server the ssh version has
changed from ssh1 to ssh2. To access the server I have to use a
vpn-client (Cisco VPN-Client 4.0.3).

I'm still able to get an ssh2 connection (only if i force ssh to use
keyboard-interactive authentication). rsync is installed on the server
as well. But when i try to use rsync with ssh2 i fail. (See my tries
below.)


Thank you in advance for every help,
Bernd




=============== Rsync Version on PC ===============================
C:\rsync>rsync
rsync version 2.5.1-dev protocol version 26
Copyright (C) 1996-2002 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 32-bit files, socketpairs, hard links, symlinks,
batchfiles, no IP
v6,
32-bit system inums, 64-bit internal inums
rsync is a file transfer program capable of efficient remote update
via a fast differencing algorithm.



======== Login to server works (using SSH2 & keyboard interactive)
===========

C:\rsync>ssh2 -h
ssh2: SSH Secure Shell 3.2.0 Windows Client
Copyright (c) 1995-2002 SSH Communications Security Corp
SSH is a registered trademark and Secure Shell is a trademark of
SSH Communications Security Corp (www.ssh.com).
All rights reserved.

C:\rsync>ssh2 -oallowedauthentications=keyboard-interactive
xyz.xyz.xyz.xyz -l user
Keyboard-interactive:
Password:
Keyboard-interactive:
Authentication successful.
Linux viffs1 2.6.8-2-386 #1 Mon Jan 24 03:01:58 EST 2005 i686 GNU/Linux

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Wed Feb 22 10:33:40 2006 from 192.168.255.10

======== Rsync Version on server ===========

user@server:~$ rsync
rsync version 2.6.6 protocol version 29
Copyright (C) 1996-2005 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
inplace, IPv6, 64-bit system inums, 64-bit internal inums


======== Try to use rsync and ssh2 fails ===========


C:\rsync>rsync -av -e "ssh2
-oallowedauthentications=keyboard-interactive -l user -d 3"
user@xxxxxxxxxxxxxxx:/tst tst
debug: Connecting to xyz.xzy.xyz.xyz, port 22... (SOCKS not used)
debug: Ssh2/ssh2.c:2297: Entering event loop.
debug: Ssh2Client/sshclient.c:1421: Creating transport protocol.
debug: Ssh2Transport/trcommon.c:2522: Allocating cipher: name: none,
key_len: 16
.
debug: Ssh2Transport/trcommon.c:2522: Allocating cipher: name: none,
key_len: 16
.
debug: SshAuthMethodClient/sshauthmethodc.c:85: Added
"keyboard-interactive" to
usable methods.
debug: Ssh2Client/sshclient.c:1462: Creating userauth protocol.
debug: client supports 1 auth methods: 'keyboard-interactive'
debug: Ssh2Common/sshcommon.c:530: local ip = abc.abc.abc.abc, local
port = 1380
debug: Ssh2Common/sshcommon.c:532: remote ip = xyz.xyz.xyz, remote port
= 22
debug: SshConnection/sshconn.c:1945: Wrapping...
debug: Remote version: SSH-2.0-OpenSSH_3.8.1p1 Debian-krb5 3.8.1p1-7
debug: OpenSSH: Major: 3 Minor: 8 Revision: 1
debug: Ssh2Transport/trcommon.c:1518: All versions of OpenSSH handle kex
guesses
incorrectly.
debug: Ssh2Transport/trcommon.c:1714: Computing algorithms from key
exchange.
debug: Ssh2Transport/trcommon.c:1901: lang s to c: `', lang c to s: `'
debug: Ssh2Transport/trcommon.c:1967: c_to_s: cipher 3des-cbc, mac
hmac-sha1, co
mpression none
debug: Ssh2Transport/trcommon.c:1970: s_to_c: cipher 3des-cbc, mac
hmac-sha1, co
mpression none
debug: SshProtoTrKex/trkex.c:481: Making first key exchange packet.
debug: Remote host key found from database.
debug: Ssh2Transport/trcommon.c:2522: Allocating cipher: name: 3des-cbc,
key_len
: 24.
debug: Ssh2Transport/trcommon.c:2522: Allocating cipher: name: 3des-cbc,
key_len
: 24.
debug: Ssh2Common/sshcommon.c:331: Received SSH_CROSS_STARTUP packet
from connec
tion protocol.
debug: Ssh2Common/sshcommon.c:381: Received SSH_CROSS_ALGORITHMS packet
from con
nection protocol.
debug: server offers auth methods
'gssapi-with-mic,publickey,gssapi,keyboard-int
eractive'.
Keyboard-interactive:
Password:
debug: Ssh2AuthKbdInteractiveClient/authc-kbd-interactive.c:244: Sending
respons
e packet.
Keyboard-interactive:
debug: Ssh2AuthKbdInteractiveClient/authc-kbd-interactive.c:244: Sending
respons
e packet.
debug: Ssh2Common/sshcommon.c:299: Received SSH_CROSS_AUTHENTICATED
packet from
connection protocol.
debug: Ssh2/ssh2.c:817: forward_x11 = TRUE, forward_agent = TRUE
debug: Ssh2Common/sshcommon.c:840: num_channels now 1
debug: SshStdioStream/sshwinstdiostream.c:372: disconnection signaled to
stdio s
tream.
debug: SshConnection/sshconn.c:406: EOF from channel stream
debug: SshConnection/sshconn.c:674: EOF received on write from channel
0xb3f258,
extended stream 0.
debug: SshConnection/sshconn.c:1338: Received data when close_sent -
ignoring
debug: SshConnection/sshconn.c:1338: Received data when close_sent -
ignoring
debug: SshStdioStream/sshwinstdiostream.c:286: eof outputted to stdio
stream.
debug: Ssh2ChannelSession/sshchsession.c:1923: received exit status : 12
debug: Ssh2Common/sshcommon.c:807: num_channels now 0
debug: Got session close with exit_status=12
debug: destroying client struct...
debug: Ssh2Client/sshclient.c:1497: Destroying client.
debug: SshConfig/sshconfig.c:2313: Freeing pki. (host_pki != NULL,
user_pki = NU
LL)
debug: SshCertDB/cert-db.c:727: memory left 0
debug: SshConnection/sshconn.c:1997: Destroying SshConn object.
debug: SshStdioStream/sshwinstdiostream.c:316: stdio stream b37268 is
being dest
royed.
debug: SshStdioStream/sshwinstdiostream.c:316: stdio stream b371f0 is
being dest
royed.
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at io.c(151)

C:\rsync>


Are you using public key authentication, and if do, did the
authorized_keys file get deleted or overwritten when the server was updated.

--
To reply by email remove "_nospam"
.



Relevant Pages

  • Re: Rsync problem - still unsolved
    ... not an ssh problem rather than an rsync problem. ... debug: client supports 1 auth methods: 'keyboard-interactive' ... Using keyboard-interactive authentication. ...
    (comp.security.ssh)
  • Re: possible? ssh-connection as XP- network connection
    ... My server uses Keyboard-interactive authentification: ... Unfortunatly i didn't succed using rsync with ssh tunneling. ... debug: Ssh2/ssh2.c:2297: Entering event loop. ... debug: Ssh2Client/sshclient.c:1421: Creating transport protocol. ...
    (comp.security.ssh)
  • Re: sending large amount of data securely
    ... We mirror about 300GB worth of data accross one master and three slave servers using rsync, we do not use ssh as it's a local-only gigabit ethernet link between servers, but it's not overly difficult to accomplish in your case. ... If you do need to use ssh with rsync, then you could try out the latest openssh-portable port which now seems to support the HPN patches. ...
    (freebsd-questions)
  • How can I restrict incoming root rsync over ssh to specified command?
    ... will use rsync over ssh to pull certain directories from the ssh ... Here's an example of the command, ... Even with the server locked up in a room with no user ...
    (comp.os.linux.security)
  • Rsync problem
    ... In our Institut i was able to use rsync with ssh for backup my data from PC to linux server. ... debug: SshAuthMethodClient/sshauthmethodc.c:85: Added "keyboard-interactive" to ...
    (comp.security.ssh)