hello , i'm trying to build a rsync server on window.
i've managed to connect to one module with SSH using the password generated at server install.
now i want to use multiple modules and use 'auth user' and 'secrets file' feature to secure each module.
how do i pass 'auth user' and password file and ssh password at the same time ?
i got the following error :
@ERROR: auth failed on module data
rsync error: error starting client-server protocol (code 5) at main.c(1296)
Terminating secure channel ...
===rsyncd.conf===
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid
secrets file = /cygdrive/C/secrets.txt
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
path = /cygdrive/d/rsync_data
read only = false
transfer logging = yes
secrets file = /cygdrive/C/secrets.txt
auth users = user1
===secretfile===
user1:pwd1
user2:pwd2
===my batch file====
@ECHO OFF
SET SECHAW_IDENTITY="C:\Program Files\cwRsync\cwrsync"
SET SECHAW_TYPE=ssh
SET SECHAW_LOCALPORT=9119
SET SECHAW_SERVER=192.168.1.1
SET SECHAW_SERVERPORT=873
SET SECHAW_USER=SvcwRsync
SET SECHAW_CMD="C:\Program Files\cwRsync\bin\rsync.exe" -av /cygdrive/d/upload rsync://SvcwRsync@localhost:9119/data
SET SECHAW_TUNNEL=ssh -i "C:\Program Files\cwRsync\cwrsync" -L 9119:127.0.0.1:873 SvcwRsync@192.168.1.1 -T -N
SET RSYNC_PASSWORD=fgS-N5Hi14
"C:\Program Files\cwRsync\bin\sechaw.exe" --verbose
==== my error log ====
Tunnel: ssh
Command to run: "C:\Program Files\cwRsync\bin\rsync.exe" -av /cygdrive/d/upload
rsync://SvcwRsync@localhost:9119/data
Tunnel command: ssh -v -i "C:\Program Files\cwRsync\cwrsync" -L 9119:127.0.0.1:8
73 SvcwRsync@192.168.1.1 -T -N
Establishing secure channel ...
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
debug1: Connecting to 192.168.1.1 port 22.
debug1: Connection established.
debug1: identity file C:\Program Files\cwRsync\cwrsync type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024