Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

can't log in through lftp

1,202 views
Skip to first unread message

Martin

unread,
Jan 24, 2010, 6:26:56 AM1/24/10
to
I can't seem to log in to an ftp account through lftp. Logging in using
just 'ftp' works fine.
When I log in through lftp, it 'hangs' when displaying 'making data
connection'. Is it something to do with ssl or something?

thanks
--
regards

Martin

Helmut Hullen

unread,
Jan 24, 2010, 6:58:00 AM1/24/10
to
Hallo, Martin,

Du meintest am 24.01.10:

> I can't seem to log in to an ftp account through lftp. Logging in
> using just 'ftp' works fine.
> When I log in through lftp, it 'hangs' when displaying 'making data
> connection'. Is it something to do with ssl or something?

"or something".
What about the "passive" option?

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".

Martin

unread,
Jan 24, 2010, 8:12:17 AM1/24/10
to

Thanks for your reply. My understanding is that the passive mode is
enabled by default in lftp. Nevertheless, I've tried to set it
explicitly in /etc/lftp.conf (set ftp:passive-mode on)
and on the lftp command prompt with no luck, though:(

regards

martin

Helmut Hullen

unread,
Jan 24, 2010, 9:06:00 AM1/24/10
to
Hallo, Martin,

Du meintest am 24.01.10:

>>> I can't seem to log in to an ftp account through lftp. Logging in
>>> using just 'ftp' works fine.
>>> When I log in through lftp, it 'hangs' when displaying 'making data
>>> connection'. Is it something to do with ssl or something?

> Thanks for your reply. My understanding is that the passive mode is


> enabled by default in lftp. Nevertheless, I've tried to set it
> explicitly in /etc/lftp.conf (set ftp:passive-mode on)
> and on the lftp command prompt with no luck, though:(

And what happens if you set "ftp:passive-mode off"?

Simple ftp is most times set to "passive off".

wat...@googlemail.com

unread,
Jan 24, 2010, 11:35:38 AM1/24/10
to
Yes, maybe it has something to do with something, or even with ssl..

Martin

unread,
Jan 24, 2010, 1:22:50 PM1/24/10
to
Thanks, with passive mode off the situation seems the same.
Actually I do apologise for misleading information in the title
of the thread and my original post. I CAN log in, but then when I
try to 'ls' it says:
'ls' at 0 [making data connection...]
and then after some time:
'ls' at 0 [delaying before reconnect: + seconds counting down]
and then it goes back to logging in [ok], making data connection...
I also tried:
set ssl:verify-certificate off
again, with no luck.

regards,
martin

Mike Spencer

unread,
Jan 25, 2010, 12:16:23 AM1/25/10
to

Martin <xtd...@gmail.com> wrote:

> Actually I do apologise for misleading information in the title
> of the thread and my original post. I CAN log in, but then when I
> try to 'ls' it says:
> 'ls' at 0 [making data connection...]
> and then after some time:
> 'ls' at 0 [delaying before reconnect: + seconds counting down]
> and then it goes back to logging in [ok], making data connection...

Sounds as if you command connection works but the remote host can't
open a new connection to your local host for data. I'm supposing that
"passive" is off, here, or perhaps the remote host doesn't support PASV
protocol command.

Are you by any chance runnng iptables? If so, have you failed to
issue an iptables command something like this

/usr/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

to permit "related" inbound connections? And if you *do* have such an
iptables line, have you modprobed the ipt_state module required to
implement the --state switch?

Loading the module and adding the command line to /etc/rc.d/rc.local
solved a problem with very similar symptoms for me.

--
Mike Spencer Nova Scotia, Canada

0 new messages