How do I do to allow SFTP access whille blocking ssh(telnet)access?
Advanced Forum Search
-
Post date: Sunday, November 20, 2005 - 20:37
-
Post date: Saturday, November 19, 2005 - 17:31
The only person I want to login with COPSSH has a space in their account name, and COPSSH's user activation doesn't handle it very well! I tried changing the name of the account to something without a space, but the activation menu doesn't seem to be picking up the change. Has anyone had this problem before?
-
Post date: Saturday, November 19, 2005 - 14:28
My config:Internet => ADSL ROUTER => ProxyServer => Switch => TargetComp
Internet - Static IP
ADSL ROUTER - All ports mapped to Proxy
Proxy - copSSH installed, port mapping RD to TargetTunnel does not work.
It seems that user SvcCOPSSH does not have permission to acces AD computers, because this is not domain user.
Please HELP!!!
-
Post date: Friday, November 18, 2005 - 16:38
Are there any settings I could tweak to avoid brute force/dictionary attacks? Ever since Ive opened up the port I get constantly hammered by dictionary/brute force attack.
Are there any settings for a specific number of tries before the ip is temp-banned or something similar?Thanks!
-
Post date: Friday, November 18, 2005 - 16:16
C:\jobs>rsync -auzv --stats /cygdrive/d/Sites/PF-Manual/ CWsync@fshsms011::PF-Manual
@ERROR: max connections (2) reached - try again later
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(359)There is no rsync max connections in rsyncd.conf
Used between win2003win2003 ( long delay ) using cwrsync1.28Any Idea? Thanks
-
Post date: Friday, November 18, 2005 - 10:44
Hi Tev,
Hope you might have some ideas of how I might try to work-around this problem. A while ago you mentioned that it is possible to redirect the output of rsync by using 1>program_log.txt 2>error_log.txtI have found this to be very useful to keep track of what rsync is doing.
-
Post date: Friday, November 18, 2005 - 01:23
I am trying to figure out how to redirect the home directory to a drive other than the drive the application is installed.
I have an automated process that will login with a domain account and load job files on a drive in a specific folder. From what I have been able to glean from previous posts I should change the entry in the /etc/passwd to read /cygdrive/d/folder/subfolder/subfolder.Is this correct or am I completely lost?
-
Post date: Thursday, November 17, 2005 - 03:48
Hi,I am trying to sync with a Rsync server tunneling thru SSH. The server is inside a firewall and has a public IP. But it hangs after executing the lines:
.........
debug2: channel 1: rcvd adjust 131072
Last login: Wed Nov 16 22:20:25 2005 from 164.164.37.5Here is the commands that I execute:
@ECHO OFF
SET CYGWIN=nontsec
SET CWRSYNCHOME=C:\Program Files\cwRsync
SET PATH=%CWRSYNCHOME%\BIN;%PATH%
SET SECHAW_IDENTITY="C:\RSyncServerInfo\cwrsync"
SET SECHAW_TYPE=ssh
SET SECHAW_LOCALPORT=8873
SET SECHAW_SERVER=216.219.73.108
SET SECHAW_SERVERPORT=873
SET SECHAW_USER=SvcwRsync
SET SECHAW_CMD="C:\Program Files\cwRsync\bin\rsync.exe" -avr 216.219.73.108:cmisreplication /cygdrive/c/Inetpub/wwwroot/ActionAidCMS/AACMS_Docs/
SET SECHAW_TUNNEL=ssh -i "C:\RSyncServerInfo\cwrsync" -L 8873:216.219.73.108:873 SvcwRsync@216.219.73.108 -vvvv
"C:\Program Files\cwRsync\bin\sechaw.exe" --verboseAny idea?
Thanks in Advance
Chandan -
Post date: Tuesday, November 15, 2005 - 22:02
Hello.
I have installed cwRsync V2.0.4 (latest) and when I run a simple script which is the following:@ECHO OFF
SET CWRSYNCHOME=C:\PROGRAM FILES\CWRSYNC
SET CYGWIN=nontsec
SET HOME=%HOMEDRIVE%%HOMEPATH%
SET CWOLDPATH=%PATH%
SET PATH=%CWRSYNCHOME%\BIN;%PATH%
rsync -avz --delete /cygdrive/d/perso/ john@mydomain.com:work/d/persoI get the following error:
C:\PROGRAM FILES\CWRSYNC\BIN\rsync.exe (392): *** system shared memory version mismatch detected - 0x75BE0074/0x75BE0084. -
Post date: Tuesday, November 15, 2005 - 17:43
so there is windows xp with cwrsync installed, with the specific service started with the rsyncd.conf like this:
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#path = /cygwin/D/Lucru reviste
read only = true
transfer logging = yeson linux station,
i try this:/usr/bin/rsync -rb 192.168.3.65::test /backup/practic/tehno
i get this error:
-
Post date: Tuesday, November 15, 2005 - 01:25
HelloI want to setup a SSH tunnel to run RDP.
I installed CopSSH and activated a user.
I downloaded BitVise tunnelier and I installed the client and was able to access the server but it keeps asking for a password.
Where on the CopSSH side do I find the password?
I activated a user but are there other parameters that need to be setup on the server end?
What if I wan't to change, let's say the password?
I generally am pretty good about finding info and being able to configure from that, but I cannot find anything on this so far. -
Post date: Monday, November 14, 2005 - 17:15
The service rsyncserver runs with the environment-variable CYGWIN="nontsec binmode" (standard installation).How can I run that same service with CYGWIN="ntsec binmode"?
Thank you in advance.
Philip
-
Post date: Sunday, November 13, 2005 - 00:27
Hi,
What is the best way to close an SSH session via a script? At the moment I am killing the ssh.exe process which IMO is a "brute force" approach, but I don't know how to send a logout or exit command to the existing session.Cheers,
VW -
Post date: Saturday, November 12, 2005 - 04:53
Hi,
I can't get public key authentication to work. From the log, I think the problem is with the authorized_keys file on the server, but I have checked that the public key has been copied into the file intact, so am not sure what to do next.Would appreciate advice on how to troubleshoot, below is a copy of the log:
C:\copssh\bin>ssh vw@192.168.200.10 -vv
OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh_config
debug1: Applying options for 192.168.200.10
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.200.10 port 22.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /cygdrive/c/Documents and Settings/Administrator/.ssh/id_r
sa type 1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type 'Proc-Type:'
debug2: key_type_from_name: unknown key type 'DEK-Info:'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /cygdrive/c/Documents and Settings/Administrator/.ssh/id_d
sa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.2
debug1: match: OpenSSH_4.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro
up14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1
28,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1
28,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro
up14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1
28,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour1
28,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open
ssh.com,hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024 -
Post date: Saturday, November 12, 2005 - 04:44
I am running 2.03 server at office, the client at home. When I enter this command at home:
rsync -avz --delete --progress --stats /TEST/* phil@test.dyndns.org::TEST -
Post date: Friday, November 11, 2005 - 11:50
Hi,
I have installed CopSSH on two machines, as I want to establish an SSH tunnel. On both machines the SSH daemon won't start. Both machines also have cwrsync installed (which still works), I assume that they can co-exist?I kept the install log from one of the systems and there are a couple of errors that might help indicate what the underlying problem is.
Errors in install log
Configure sshd as an NT service
/usr/bin/cygrunsrv: Error installing a service: CreateService: Win32 error 1078:
The name is already in use as either a service name or a service display
name/usr/bin/cygrunsrv: Error querying a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed serviceStart sshd service
/usr/bin/cygrunsrv: Error starting a service: OpenService: Win32 error 1060:
The specified service does not exist as an installed serviceEverything else in the log looks OK.
Any ideas?
Also on the other machine the ssh client doesn't seem to be reading the settings in the ssh_config file. Does the sshd service need to be running for the ssh client to work?
Thanks
VW
-
Post date: Thursday, November 10, 2005 - 11:02
I discovered a strange difference between 2 ways of using cwrsyncserverI want to backup a directory with
- readable directories
- readable files
- unreadable directory (because of acl)
- unreadable file (because of acl)In both implementation I use the following command on the client-side (on Linux)
rsync -a rsync://rsnapshot@10.6.0.19:/test .
version 1:
using a service on windows2003 for rsyncserver (normal installation) I get the following output on the client-side
>rsync: send_files failed to open "/hidden.txt" (in test): Permission >denied (13)
--> only the hidden file is displayedversion 2:
type the following command in a cmd-box (first stop the service):
bin\rsync.exe --config rsyncd.conf --daemon --no-detach
Then I get the following output on the client-side:>rsync: opendir "/hidden" (in test) failed: Permission denied (13)
>rsync: send_files failed to open "/hidden.txt" (in test): Permission >denied (13)
--> here you can see the file and the directoryConclusion:
in the version where rsync is running as a service, I can't see that the unreadable directory isn't copied!
With rsync started as a program in a cmd-box, I CAN see that the unreadable directory isn't copied!Is there a sollution for this problem (I want to see which directories aren't copied and use a service)?
Thank you
Philip
-
Post date: Thursday, November 10, 2005 - 03:28
I have downloaded cwRsync server/client and set them up on two machines, but I cannot get them to work. I run swrsync.cmd and it outputs this:
Tunnel: ssh
Command to run: "C:\Program Files\cwRsync\bin\rsync.exe" -av /cygdrive/c/backup/
server::backup
Tunnel command: ssh -i "C:\cwrsync" -L
9119:127.0.0.1:873 SvcwRsync@192.168.0.113 -T -N
Establishing secure channel ...
rsync: getaddrinfo: server 873: no address associated with hostname.
rsync error: error in socket IO (code 10) at clientserver.c(98)
Terminating secure channel ... -
Post date: Wednesday, November 9, 2005 - 18:03
My zonealarm firewall blocks the internet access to my copSSH server. My zonealarm has been set up to let copSSH as a server. When I shut down zonealarm, access to copSSH is ok. When I keep zonealarm on, the access to my copSSH is blocked. But if I stop and restart openSSH server while zonealarm is on, the internet access to my copSSH server is fine. It means my copSSH can pass through zonealarm firewall only if I stop and restart the openSSH server. My copSSH server starts when windows start. I have windows XP service pack 2. zonealarm version 6.0.667.000 (free version).
-
Post date: Wednesday, November 9, 2005 - 16:35
When I use the RsyncServer-service and I rsync a directory with unreadable directories, I don't see any errors on the client site (Linux).If I stop the service and start rsync manually on the server-side (windows) with the command:
bin\rsync.exe --config rsyncd.conf --daemon --no-detachI do get the following error on the client side:
>rsync: opendir "/hidden" (in test) failed: Permission denied (13)
>rsync error: some files could not be transferred (code 23) at >main.c(1166) -
Post date: Tuesday, November 8, 2005 - 13:22
Hi.
I have got CWRsync replicating a single, very large file (1.5GB), between sites. Some sites do not have very fast links, so I was wondering if anyone knows if it is possible to limit the bandwidth consumed by CWRsync. A trickle feature if you like...cheers
Brgds,
Peter -
Post date: Monday, November 7, 2005 - 19:31
Hi:
I am backing up windows servers to linux with cwRsync. In windows I use cp850 codepage. Windows filenames with international characters (ie spanish accents) won't get correctly mapped to linux. And worse, when I restore those files back to windows, they don't have their original names anymore. What can I do? Do exist a way to tell rsync what codepage the server uses?Thanks,
Inaki.
-
Post date: Monday, November 7, 2005 - 16:59
I cannot get rsync to connect to a linux box at all (I have tried with 2 different ones). Here is the result of my attempts...
C:\>rsync -vvvvv -e "plink" "nikki@debian::nikki"
cmd=plink machine=debian user=nikki path=nikki
cmd=plink -l nikki debian rsync --server --daemon .
opening connection using plink -l nikki debian rsync --server --daemon .
Unable to write to standard output
rsync: read error: Connection reset by peer (104)
_exit_cleanup(code=12, file=io.c, line=584): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(584)
_exit_cleanup(code=12, file=io.c, line=584): about to call exit(12)C:\>rsync -vvvvv -e "ssh" "nikki@debian::nikki"
cmd=ssh machine=debian user=nikki path=nikki
cmd=ssh -l nikki debian rsync --server --daemon .
opening connection using ssh -l nikki debian rsync --server --daemon .
Local: Bad packet length 1349676916.
rsync: read error: Connection reset by peer (104)
_exit_cleanup(code=12, file=io.c, line=584): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(584)
_exit_cleanup(code=12, file=io.c, line=584): about to call exit(12)Compares with a similar command attempted on the linux box itself...
nikki@debian:~$ rsync -v -e ssh nikki@debian::nikki
drwxr-xr-x 4096 2005/11/07 15:52:35 .
-rwxr-xr-x 90 2005/11/07 15:52:35 changeroot
-rwxr-xr-x 128 2005/11/07 15:52:35 copycgi
-rwxr-xr-x 111 2005/11/07 15:52:35 drssh
-rwxr-xr-x 978 2005/11/07 15:52:35 jumbocopy
-rwxr-xr-x 47 2005/11/07 15:52:35 reserr
-rwxr-xr-x 48 2005/11/07 15:52:35 reslog
-rwxr-xr-x 1501 2005/11/07 15:52:35 resplan.nightly
-rwxr-xr-x 80 2005/11/07 15:52:35 vpnsent 76 bytes received 171 bytes 494.00 bytes/sec
total size is 2983 speedup is 12.08As far as I can see, it should work - ssh and plink can both connect OK.
Both "plink nikki@debian" and "ssh nikki@debian" give me a shell prompt on the Linux box.C:\>ssh nikki@debian /bin/true >testit
C:\>dir testit
Volume in drive C has no label.
Volume Serial Number is 0CCD-D9FCDirectory of C:\PROGRA~1\cwRsync\bin
07/11/2005 15:55 0 testit
1 File(s) 0 bytes
0 Dir(s) 10,236,416,000 bytes freeA similar test for plink also works OK, generating a zero length file.
The Windows box is running XP Professional SP2. Both plink and ssh are the ones provided with cwRSync. I have a later version of plink, which I have tried as well, giving the same problem.
As far as I can see, rsync just doesn't work. But I see other people seem to be operating OK, so i can't figure out what I'm doing wrong.
Nikki
-
Post date: Sunday, November 6, 2005 - 22:49
On my Windows 2000 machine, from time to time the rsync/cygrunsrv/csrss trio uses all processor cycles.For instance, they were running for nearly three days normaly, and suddenly they nearly freeze the machine. I had to kill rsync/cygrunsrv to have again the use of the machine...
I have cwrsync version 2.0.4.Have some else experienced this?
It seems to have appeared with the last update of ZoneAlarm...
-
Post date: Friday, November 4, 2005 - 21:03
Hi. I was wondering if rSync did continuous replication? That is, could rSync be ran from a batch file that would run continuously replicate data until the batch file was aborted?
Also, I have a question about logs. Does rSync produce a log file of everything that it copies so that you can review it?Thanks
Pages
Release news
-
2023-03-21
-
2023-03-20
-
2023-03-20
-
2023-03-10
-
2023-03-09
-
2023-03-04
-
2023-03-02
-
2023-02-28
-
2023-03-07