dir200 Port command successful
I've got a Fox T2. In the dim and distant past I wrote an app that
would allow me to do things to the drive - but that was on
Windows, and I run Linux now.
I want to resurrect the app - but I'm having trouble with FTP.
I can log in, give my password, and then almost nothing.
I've got a Fox T2. In the dim and distant past I wrote an app that would allow me to do things to the drive - but that was on Windows, and I run
Linux now.
I want to resurrect the app - but I'm having trouble with FTP.
I can log in, give my password, and then almost nothing.
pwd tells me that it's in the remote /media directory. cd will let me
change to root - except that after I've done that pwd still says I'm in /media. None of the directory listing commands work, and when I try them
it says something like
dir 200 Port command successful 421 Service not available, remoteserver has closed connection.
then disconnects.
Any idea?
I'd though of using DLNA to get recordings off it, but although my Roku
TV is happy to talk to the DLNA server my Linux box isn't. With several different apps.
Any ideas?
Andy
On Mon, 31 Oct 2022 16:33:03 +0000, Vir Campestris wrote:
I've got a Fox T2. In the dim and distant past I wrote an app that
would allow me to do things to the drive - but that was on Windows, and
I run Linux now.
I want to resurrect the app - but I'm having trouble with FTP.
I can log in, give my password, and then almost nothing.
pwd tells me that it's in the remote /media directory. cd will let me
change to root - except that after I've done that pwd still says I'm in
/media. None of the directory listing commands work, and when I try
them it says something like
dir 200 Port command successful 421 Service not available, remoteserver has closed connection.
then disconnects.
Any idea?
I'd though of using DLNA to get recordings off it, but although my Roku
TV is happy to talk to the DLNA server my Linux box isn't. With several
different apps.
Any ideas?
Andy
Well, FTP is the same under Windows and Linux.
Assuming you are using the same mode?
IIRC you can do everything under a single port, or have a command port
and open another port for data transfer.
From the result you report I would suspect credentials on the Humax
being the issue.
Do the commands fail before you first try to change to root?
A long time since I tinkered with FTP, mind.
<https://www.cerberusftp.com/ftp-and-ftps-ports/>
Looks like a reasonable reference.
Have you updated the Humax software since it last worked?
Or could there be something in your network acting as a firewall?
FTP is deprecated now AFAIK and your Linux build might be self
censoring.
On Tue, 08 Nov 2022 18:11:21 +0000, David wrote:
On Mon, 31 Oct 2022 16:33:03 +0000, Vir Campestris wrote:
I've got a Fox T2. In the dim and distant past I wrote an app that
would allow me to do things to the drive - but that was on Windows,
and I run Linux now.
I want to resurrect the app - but I'm having trouble with FTP.
I can log in, give my password, and then almost nothing.
pwd tells me that it's in the remote /media directory. cd will let me
change to root - except that after I've done that pwd still says I'm
in /media. None of the directory listing commands work, and when I try
them it says something like
dir 200 Port command successful 421 Service not available, remoteserver has closed connection.
then disconnects.
Any idea?
I'd though of using DLNA to get recordings off it, but although my
Roku TV is happy to talk to the DLNA server my Linux box isn't. With
several different apps.
Any ideas?
Andy
Well, FTP is the same under Windows and Linux.
Assuming you are using the same mode?
IIRC you can do everything under a single port, or have a command port
and open another port for data transfer.
From the result you report I would suspect credentials on the Humax
being the issue.
Do the commands fail before you first try to change to root?
A long time since I tinkered with FTP, mind.
<https://www.cerberusftp.com/ftp-and-ftps-ports/>
Looks like a reasonable reference.
Have you updated the Humax software since it last worked?
Or could there be something in your network acting as a firewall?
FTP is deprecated now AFAIK and your Linux build might be self
censoring.
P.S. This is how I think it works.
You Linux system opens a connection to the Humax on the command port (21
if you are using insecure FTP).
A listing is requested over the command channel and the Humax tries to
open a connection to the Linux system over Port 20 to send the reply.
I wouldn't be surprised if your Linux system wasn't happy about
accepting an incoming connection on Port 20 (without, perhaps, some tinkering). Have a look in the error logs to see if an incoming
connection is being refused.
P.P.S.
Passive mode is the term I was seeking.
If you start up FTP in Passive Mode then everything is initiated from the calling end.
This is useful for when other things stop the target system (Humax) from calling back.
Best of luck.
Dave R
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 10:39:43 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,335 |