PDA

View Full Version : Problems with FTP autologin


nvn
24th August 2006, 12:41
Hi...

SUSE 10.1, ISPCOnfig 2.2.6

I am writing a script to make a backup of my web-folders...

When i try to make an automated ftp transfer I'm asked for password.... ?

I'm using a file with the commands:


ftp < autoftp



File: autoftp



open ftpserver.dk
user
password
put *.*
bye


Then i get this:

web1:/backup # ftp < autoftp
Connected to ftpserver.dk.
220 ProFTPD 1.3.0 Server (ProFTPD Default Installation) [192.168.1.151]
Name (ftpserver.dk:root): 331 Password required for user.
Password:

If i enter the password the files are transmitted as it should.

I have tried it on windows XP

Same command:

ftp -i:autoftp


working perfect.


Please help me... :)

falko
26th August 2006, 01:11
Did you have a look at these backup solutions? http://www.howtoforge.com/linux_rdiff_backup
http://www.howtoforge.com/mirroring_with_rsync

nvn
29th August 2006, 08:45
Hi Falko...

I found a solution..

I used a ".netrc" file in the ROOT home-dir

Not the best solution, but it works.