Networking Forums

Networking Forums > Computer Networking > Linux Networking > FTP works with windows, not with linux :((

Reply
Thread Tools Display Modes

FTP works with windows, not with linux :((

 
 
Oscar
Guest
Posts: n/a

 
      09-27-2004, 07:09 PM
hi,
i'm using gentoo linux in a network; my current PC still has windows
ME installed. the whole network is behind a router/firewall.
normally, FTP works fine with me; now there's one single exception:
ftp.webcamnow.com
whatever i try, there's no chance to login and upload from linux.
windows has no problems at all.
when using linux, the symptoms vary depending on the client:
gFTP: connects OK, but disconnects again - probably after LIST, but
that's not clear from the logs:

--Log:--
Suche IP Adresse von ftp.webcamnow.com
Versuche 64.124.22.156.n323.WebCamNow.com:21
Verbindung mit ftp.webcamnow.com erfolgreich:21
220 You will be disconnected after 120 seconds of inactivity.
USER <MyName>

331 User <MyName> OK. Password required.
PASS xxxx
230 OK <MyName> (3349414) logged in
SYST

220-Local time is now 14:40 and the load is 0.00 pid is 16975
215 UNIX Type: L8
TYPE I

200 TYPE is now 8-bit binary
PWD

257 "/"
PASV

227 Passive mode OK (64,124,22,156,139,47)
LIST

disconnect is logged here>>Beende Verbindung mit Gegenstelle
ftp.webcamnow.com
500 Unknown command.
--end of log--

using the CLI, ftp only works when using the "-z nossl" option.
without it, the server cuts the connection after i enter my username
without even asking for a password. with "-z nossl", i can login, but
the program freezes after "215 UNIX Type: L8":
ftp> open ftp.webcamnow.com
Connected to ftp.webcamnow.com.
220 You will be disconnected after 120 seconds of inactivity.
Name (ftp.webcamnow.comscar): <MyName>
---> USER <MyName>
331 User <MyName> OK. Password required.
Password:
---> PASS XXXX
230 OK <MyName> (3349414) logged in
---> SYST
220-Local time is now 14:48 and the load is 0.00 pid is 17176
215 UNIX Type: L8

at this point, i have to wait for 2 mins or else kill the task from a
shell prompt; there's no way FTP would react to any keyboard input.
the "session" usually ends with:
421 Number of images: 0
421-Timeout - try typing a little faster next time.
421-CPU time spent on you: 0.020 seconds
421 Service not available, remote server has closed connection
ftp>

tnftp is similiar, the only exception is that i can interrupt the 2
minutes with ctrl+C.

i cant see what i'm doing wrong. if there was something wrong with the
router/firewall, it shouldn't work when i boot windows, should it? if
there was some basic setting that prevents ftp from working under
linux, i wouldnt be able to connect to other FTP servers. and: why do
gFTP and ftp/tnftp show different symptoms? it drives me nuts to watch
gFTP issue a PWD and recieve
257 "/"
in return, when i can't do the same with ftp or tnftp... (


any ideas on where to start here?

thx,
oscar
 
Reply With Quote
 
 
 
 
Laurenz Albe
Guest
Posts: n/a

 
      09-28-2004, 08:06 AM
Oscar <(E-Mail Removed)> wrote:
> i'm using gentoo linux in a network; my current PC still has windows
> ME installed. the whole network is behind a router/firewall.
> normally, FTP works fine with me; now there's one single exception:
> ftp.webcamnow.com
> whatever i try, there's no chance to login and upload from linux.
> windows has no problems at all.
> when using linux, the symptoms vary depending on the client:
> gFTP: connects OK, but disconnects again - probably after LIST, but
> that's not clear from the logs:


What exactly are the commands you feed the FTP to get the responses?

When you boot Windows, go to the command line substitute and issue
the same commands using the FTP command, what are the effects? Does
it work?

Yours,
Laurenz Albe
 
Reply With Quote
 
Oscar
Guest
Posts: n/a

 
      09-28-2004, 09:07 PM
hi,
thx for ur reply;

Laurenz Albe <(E-Mail Removed)> wrote in message
>
> What exactly are the commands you feed the FTP to get the responses?
>
> When you boot Windows, go to the command line substitute and issue
> the same commands using the FTP command, what are the effects? Does
> it work?


when i boot windows, i do nothing but a) start FTP from the CLI, b)
issue an "open ftp.webcamnow.com", c) login with uname/pw ad finally
d) put the file. not a single special parameter, nothing. the only
thing is that the server prevents me from listing the remote
directories, but that doesn't bother me.

when i first tried to do the very same with linux, the connection (and
ftp) was closed with the following lines:
$ ftp
ftp> open ftp.webcamnow.com
Connected to ftp.webcamnow.com.
220 You will be disconnected after 120 seconds of inactivity.
Name (ftp.webcamnow.comscar): <myuser>
331 Incorrect username/password
ftp: SSL_connect error error:140770FC:SSL
routines:SSL23_GET_SERVER_HELLO:unknown protocol
: Success

i still have no idea what that means, but as it has "SSL" in it, i
tried to start FTP with the "-z nossl"-option, which seems more
successful - at least i get 1 step further:

$ ftp -z nossl
ftp> open ftp.webcamnow.com
Connected to ftp.webcamnow.com.
220 You will be disconnected after 120 seconds of inactivity.
Name (ftp.webcamnow.comscar): <myuser>
331 User <myuser> OK. Password required.
Password:
230 OK <myuser> (3349414) logged in

and that's where it dies and lets me wait for 2mins. i can make it
more -v verbose as in my first posting, but that doesn't really help
me because i dont know what exactly is going on after "230 OK ...".

gFTP, as i wrote in my 1st post, successfully masters a complete login
but disconnects when it attempts do list the remote directory - maybe
because the server answers with 500 Unknown command.
anyway, i need good old ftp to work from the CLI; gftp was only an
experiment.

yours,
oscar
 
Reply With Quote
 
Robert
Guest
Posts: n/a

 
      09-29-2004, 12:34 AM
Oscar wrote:
>
> and that's where it dies and lets me wait for 2mins. i can make it
> more -v verbose as in my first posting, but that doesn't really help
> me because i dont know what exactly is going on after "230 OK ...".
>
> gFTP, as i wrote in my 1st post, successfully masters a complete login
> but disconnects when it attempts do list the remote directory - maybe
> because the server answers with 500 Unknown command.
> anyway, i need good old ftp to work from the CLI; gftp was only an
> experiment.
>
> yours,
> oscar


Do a ls -a in your home and see if there is .netrc, which is the ftp
resource file. Maybe something's there. Other than that, check with
your isp.

Take a look at lftp or ncftp. I use lftp a lot which allows unattended
ftp operations with regular bash commands and normal prompt like you
are use to. ncftp has some neat features also.

--
Robert - slackware

 
Reply With Quote
 
Bernhard Kastner
Guest
Posts: n/a

 
      09-29-2004, 01:17 PM
Oscar schrieb:
> $ ftp
> ftp> open ftp.webcamnow.com
> Connected to ftp.webcamnow.com.
> 220 You will be disconnected after 120 seconds of inactivity.
> Name (ftp.webcamnow.comscar): <myuser>
> 331 Incorrect username/password
> ftp: SSL_connect error error:140770FC:SSL
> routines:SSL23_GET_SERVER_HELLO:unknown protocol
> : Success


some clients (especially GLI) have problems with the welcome messages
sent by the server. a common way to disable the welcome message is to
send a "-" as the first character of your password.

for example: instead of sending
user: joe
pass: mypass

you send
user: joe
pass: -mypass

I had this problem on another server and didn't have the problem with a
GUI-based ftp-client. In the welcome message of the server I read about
the minus-thingy and it worked. Maybe it will help you in this case...
 
Reply With Quote
 
Oscar
Guest
Posts: n/a

 
      09-29-2004, 08:03 PM
Thx!

Robert <(E-Mail Removed)> wrote in message > Take a look at lftp or ncftp. I use lftp a lot which allows unattended
> ftp operations with regular bash commands and normal prompt like you
> are use to. ncftp has some neat features also.


both lftp and ncftp worked for me; script is running. :-)
 
Reply With Quote
 
Oscar
Guest
Posts: n/a

 
      09-29-2004, 08:05 PM
hi,

> some clients (especially GLI) have problems with the welcome messages
> sent by the server. a common way to disable the welcome message is to
> send a "-" as the first character of your password.


thx for explaining the (most possible) reason for this strange
problem; unfortunately, ftp.webcamnow.com doesn't even accept the
"-password" thing, so i had to change to lftp and ncftp - they both
work fine.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Does there exist a Linux or BSD distro that works with the LinksysWMP54G? theosib@gmail.com Wireless Internet 2 12-13-2007 09:32 AM
Etherchannel works with Linux? - C - Linux Networking 1 05-07-2004 07:11 AM
Nildram Bonded ADSL works with Linux Edward Chapman Broadband 0 02-28-2004 07:24 PM
Mandrake Linux 9.1 and Netgear MA311 wireless PCI card works Garry Knight Wireless Internet 0 12-22-2003 12:03 AM
Netgear MA311 Works with Redhat 8.0 Linux Tim Linux Networking 1 11-16-2003 08:00 PM



1 2 3 4 5 6 7 8 9 10 11