Problems with FTP autologin

Discussion in 'Programming/Scripts' started by nvn, Aug 24, 2006.

  1. nvn

    nvn New Member

    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:

    Code:
    ftp < autoftp
    
    
    File: autoftp

    Code:
    
    open ftpserver.dk
    user
    password
    put *.*
    bye
    
    Then i get this:

    Code:
    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:
    Code:
    ftp -i:autoftp
    
    working perfect.


    Please help me... :)
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. nvn

    nvn New Member

    Hi Falko...

    I found a solution..

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

    Not the best solution, but it works.
     

Share This Page