🧰 Using ftp Command

1. Connect to FTP Server

Replace 10.10.10.98 with your target FTP server IP or domain:

ftp 10.10.10.98

2. Login as Anonymous

Name (10.10.10.98:yourusername): anonymous
Password: (press Enter)

3. Set Binary Mode

To handle all types of files properly:

ftp> binary

4. Disable Prompting (for Multiple Files)

ftp> prompt off
Interactive mode off.

5. Download Files (Wildcard)

ftp> mget *

⚠️ Note: Standard ftp does not support recursive download. For recursive download, use a better client like lftp.


πŸ•ΈοΈ Using wget Command

1. Recursive Download in Active Mode

wget --no-passive-ftp -m ftp://anonymous:[email protected]

2. Enable Verbose Debug Output

wget --no-passive-ftp -m -d ftp://anonymous:[email protected]

πŸ” -d is useful for troubleshooting and debugging the connection.


πŸ” Using lftp Command

1. Install lftp (if not installed)

sudo apt-get install lftp

2. Connect to FTP Server

lftp -u anonymous,anonymous ftp://10.10.10.98

3. Use mirror Command to Download Recursively

lftp ftp://10.10.10.98:~> mirror --verbose

βœ… mirror allows full recursive download with progress display.