My application background: use ftp for file sharing and transmission.
The conditions are as follows:
1. The host is Windows Vista (filezilla server is installed and Windows becomes an FTP server)
2. The virtual machine Ubuntu server 9.10 (created by virtual box and pinged to the host)
Under Ubuntu:
# Ftp *. 158. *. 133
After entering the user name and password, the logon is successful:
Ftp> ls
200 PORT command successful
150 opening data channel for directory list.
......
Then there will be no output. Press Ctrl + c
......
425 can't open data connection.
226 Abor command successful
Ftp>
Cause Analysis and Solution Process:
1. In Windows, you can use the command line to log on to FTP normally, indicating that the FTP server is correct...
2. I searched the internet for reasons of firewall or passive mode.
3. Use man FTP to view help information:
-P use passive mode for data transfers. allows use of FTP in environments
Where a Firewall prevents connections from the outside world
Back to the client machine. requires that the FTP server support
The PASV command. This is the default if invoked as pftp.
My solution (the connection uses one more parameter ):
# Ftp-p *. 158. *. 133
It will be successful.