[Hpr] There may be issues with the FTP server
perloid at autistici.org
Tue Dec 29 05:56:57 PST 2015
-----BEGIN PGP SIGNED MESSAGE-----
On 29/12/15 10:33, Ken Fallon wrote:
> After the server move we noticed that the FTP upload is not working and
> it fails with "No Route to host". Dave and Josh tracked the issue down
> and have fixed it.
Sadly there's still an issue with FTP, but there's a work-around until
it's finally fixed.
The problem is that the HPR server is not currently set up to allow the
modes "extended passive" (EPSV) and "passive" (PASV). These modes are
where an FTP server tells the client to open a data channel on a port of
It's possible to use the older method of establishing a data channel.
This uses the "PORT" command which makes a connection from the server to
the client. This works fine (assuming your firewall doesn't prevent it),
but many modern FTP clients default to EPSV/PASV.
Using the ancient 'ftp' command is one solution. I just tried it, though
I had to install it first.
I use 'curl' like this:
curl -T "file_to_upload" -K .hpr_curlrc -P -
The '-P -' tells curl not to use EPSV/PASV.
The file .hpr_curlrc contains the two lines:
user: shows at hackerpublicradio.org:**PASSWORD**
Obviously **PASSWORD** should be replaced with the FTP password.
This makes me think that I should do an HPR episode on the FTP protocol
some time (cue collective groan...) ;-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the Hpr