Browsing articles tagged with " Passive"
Jul
3
2013

Fix VsFTP – FTP Passive Mode Problems on Amazon EC2 Instances

image[80]

For a while I was forced to connect to FTP (an installation of VSFTP) on our EC2 server using Active mode, because passive mode refused to work. While this is OK for FTP clients that can be configured to use active mode, other utilities such as screen capture (e.g. Jing) and the wordpress auto-upgrade could not work with active mode, causing all sorts of erroneous malarky. If you’re getting errors such as “227 entering passive mode… […]

Feb
1
2013

PHP FTP + Passive FTP Server

// create a basic connection $ftpconn = ftp_connect($ftp_ip, $ftp_port); // login with username and password ftp_login($ftpconn, $ftp_user, $ftp_pass); // Switch into passive mode (required for servers behind firewalls / NAT devices) ftp_pasv($ftpconn,true); // Print a directory listing print_r ftp_nlist($ftpconn, “/”);




Member Area