Re: Rsync problem - still unsolved
- From: Bernd Breitschaedel <berndb@xxxxxxxxxxxxxx>
- Date: Sat, 11 Mar 2006 10:42:05 +0100
Hello Unruh!
Hello Grant!
Unruh wrote:
So what was the point of this thread?
Seems that in your newsclient the thread starts with my message from the
9.3.2006.
My client shows my message from the 22.2.06
43fc37b6$0$12384$3b214f66@xxxxxxxxxxxxxxxxxxxx
as first posting of the thread, where i tried to expain my problem.
I just wanted to reactive this old thread, because someone willing to help me could think this problem is already out of date in our fast living world.
Starting a new thread with exactly the same topic just a few weeks later seemed to me like spamming. Adding an other message to an old thread seemed to me ok.
============================================
Anyhow: Once again the description of my Problem
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 (new hardware & new IP) 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 with keyboard-interactive authentication which is ok for me). rsync is installed on the server as well. But when i try to use rsync with ssh2 i fail. (See my tries below.)
SSH - version on server:
-------------------------
user@server~$ openssl version -a
OpenSSL 0.9.7e 25 Oct 2004
built on: Sun Nov 14 19:36:52 UTC 2004
platform: debian-i386-i686/cmov
options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -DL_ENDIAN -DTERMIO -O3 -march=i686 -mcpu=i686 -fomit-frame-pointer -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
OPENSSLDIR: "/usr/lib/ssl"
I tried to use
- plink.exe (putty) as a well known client and
- ssh2.exe ("SSH Secure Shell" Version 3.2.0 (Build 267) by SSH Communucations Security Corp.) because of its comprehensive debugging information
as SSH-client.
Please see my tries below.
Thank you in advance for every help,
Bernd
PS.:
I've looked at man rsync,
I've googled
I've studied especially
- http://www.samba.org/rsync/
- http://www.snailbook.com/faq/
I've tried many hours by my own to get this working,
but failed.
************** Software used **************************************
=============== 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.
======== 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
************************** SSH2.exe tries **************************
======== 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
======== 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>
************************** plink.exe tries **************************
========== Plink version ======
C:\rsync>plink
PuTTY Link: command-line connection utility
Release 0.58
Usage: plink [options] [user@]host [command]
("host" can also be a PuTTY saved session name)
Options:
========== Using plink to login works ========================
C:\rsync>plink user@xxxxxxxxxxxxxxx
Using username "user".
Using keyboard-interactive authentication.
Password:
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 14:02:40 2006 from xxxxxxxxxxxxxxxx
user@server:~$
========== Using Plink with rsync fails again :-( ==============
C:\rsync>rsync -av -e plink user@xxxxxxxxxxxxxxx:/tst tst
Using keyboard-interactive authentication.
Access denied
Using keyboard-interactive authentication.
Access denied
Using keyboard-interactive authentication.
Access denied
^C
Using keyboard-interactive authentication.
rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(229)
==========
.
- Follow-Ups:
- Re: Rsync problem - still unsolved
- From: Unruh
- Re: Rsync problem - still unsolved
- References:
- Re: Rsync problem - still unsolved
- From: Bernd Breitschaedel
- Re: Rsync problem - still unsolved
- From: Unruh
- Re: Rsync problem - still unsolved
- From: Bernd Breitschaedel
- Re: Rsync problem - still unsolved
- From: Unruh
- Re: Rsync problem - still unsolved
- Prev by Date: Re: Rsync problem - still unsolved
- Next by Date: Re: scp without any prompts
- Previous by thread: Re: Rsync problem - still unsolved
- Next by thread: Re: Rsync problem - still unsolved
- Index(es):
Relevant Pages
|