|
Post by alpheratz on Aug 10, 2007 8:33:12 GMT 7
I have an FTP server that will only support passive FTP access (crappy, I know, but there it is...). I have been trying to get nsync to use this server but there seems to be no way of telling it to use passive mode, instead of full (active) FTP...
I have SSHD and SYSUSER installed. I had a look around /img/bin and found the ftp binary as used by the nsync script.
When I try to use it however, bad things happen:
root@127.0.0.1:/img/bin# ./ftp -h
Usage: { ftp | pftp } [-pinegvtd] [hostname] -p: enable passive mode (default for ftp and pftp) -i: turn off prompting during mget -n: inhibit auto-login -e: disable readline support, if present -g: disable filename globbing -v: verbose mode -t: enable packet tracing [nonfunctional] -d: enable debugging
root@127.0.0.1:/img/bin# root@127.0.0.1:/img/bin# ./ftp -p 192.168.1.224 port=5376 ftp_port=5376 setport=0 ftp: connect: Connection timed out Segmentation fault root@127.0.0.1:/img/bin#
Is there anyone out there who has managed to get nsync to use passive FTP?
Cheers,
Alph
|
|
|
Post by omega on Aug 10, 2007 17:23:32 GMT 7
Hi Alph, welcome to this forum Sure Thecus should provide a way to configure passive FTP for NSYNC in the future.... About your error report (but maybe it'd be a good idea not to discuss this here...), The ftp -p works fine on my machine. The main problem is that your FTP connection couldn't be established to 192.168.1.224 to either this IP address is not valid or no FTP daemon is listening on this IP address. The core dump is just a symptom because of not being able to connect to the destination. Anyway, it's not nice and shouldn' happen. Andreas
|
|
|
Post by hazelday on Aug 30, 2007 10:20:18 GMT 7
The segfault after a timeout is *very* poor coding.
If you want to do mirroring of a remote site via ftp and nsync isn't doing it, first fix your connection problems, and see if it works.
If not, look into getting lftp, which can do a pretty decent job of mirroring via ftp, and cron. It's hackish, it's old school, but it should hold you over if there is something for thecus to fix.
-Peter
|
|