LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-03-2003, 01:29 PM   #1
murshed
Member
 
Registered: Jan 2002
Posts: 157

Rep: Reputation: 30
strange ftp question


hi all .. am having some strange ftp question

there is this Windows NT ftp server ... and i would like to access it and get some files from it ...

i can do that very easily with no problems if i use the ftp (dos version) client from windows ME

but the problem appears when i want to access the server from a linux or unix system..

the loggin is always successfull, but when i say (ls .. or get) or something it gives me this:

Remote system type is Windows_NT.
ftp> ls
227 Entering Passive Mode (192,168,1,2,14,157).

receive aborted
waiting for remote to finish abort
ftp> binary
200 Type set to I.
ftp> ls
227 Entering Passive Mode (192,168,1,2,14,162).
ftp: connect: Connection timed out
ftp>


it just hangs and i need to make ctrl+c to bring it back to normal ...

some times (ls) is working fine ... but the get command doesn't work

i've tested this issue on more than a linux box with the same result

i would like to mention that i also did the command (binary) to change to the binary mode .. but no use



any advice would be appreciated
thanks
 
Old 03-03-2003, 05:20 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
try using ncftp or lftp. miight be a liimtation of the plain ftp tool.
 
Old 03-03-2003, 05:41 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
If you are ftp'ing into a Windows box why are you using the ls command? Wouldn't it be dir instead?
 
Old 03-03-2003, 08:39 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
More importantly, why haven't you talked this person into switching to linux? j/k

I'd venture to guess it's the command, it doesn't recognize ls. born4linux's suggestion will probably work, but I'm curious as to what would work using the tool you've picked. Let us know if dir does it.

Cool
 
Old 03-04-2003, 08:33 AM   #5
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
passive mode ftp is typically used by clients behind firewalls.
Try "passive" after you have logged.
Also man ftp and google pasv ftp

ls should be valid to all ftp servers. The ls is an ftp client command that gets converted to the FTP protocol LIST command which the server will process. Enter "help" after you have logged in
 
Old 03-04-2003, 11:56 PM   #6
murshed
Member
 
Registered: Jan 2002
Posts: 157

Original Poster
Rep: Reputation: 30
thanks everyone ..

well i did that and get this:

ftp> get SoundForge60_Manual.pdf
local: SoundForge60_Manual.pdf remote: SoundForge60_Manual.pdf
200 PORT command successful.
150 Opening ASCII mode data connection for SoundForge60_Manual.pdf(4257986 bytes).


i did .. "passive" and passive mode was switched off and then on and then tried binary mode .. they all let me reach till the point of

Opening ***** mode data connection for SoundForge60_Manual.pdf(4257986 bytes).

and then it stucks ...




suggestions?
 
Old 03-05-2003, 07:48 AM   #7
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
what speed is your modem/connection?

try to first get a smallish file to check if size/duration is an issue.
 
Old 03-05-2003, 02:19 PM   #8
murshed
Member
 
Registered: Jan 2002
Posts: 157

Original Poster
Rep: Reputation: 30
well the linux box is a web server .. download speed is maybe more than 1 mb per sec ..
and the windows machine has an adsl .. which has a big difference in speed ... slower of course , 384 kbps
 
Old 03-05-2003, 02:51 PM   #9
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
so you were able to "get" a smaller file?
 
Old 03-06-2003, 06:12 AM   #10
murshed
Member
 
Registered: Jan 2002
Posts: 157

Original Poster
Rep: Reputation: 30
no , not at all, it just hangs
 
Old 03-06-2003, 07:46 AM   #11
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
to review:

the "ls" works - this would be equivalent to a get if it uses the 2nd channel (I forget).

file size is not an issue - just to make sure, do you have write permissions in the directory from which u r issuing the ftp?

just for the heck of it, can you put a small file?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Strange FTP script problem ??? lionking_x Linux - Newbie 1 08-15-2005 04:53 AM
strange FTP issue tanmaya Linux - Networking 2 05-23-2005 07:15 AM
strange ftp problem nix_crazy Linux - Networking 5 04-12-2005 08:36 PM
Strange problem while installing via ftp Pauluso Linux - Networking 1 10-18-2004 09:30 AM
Strange FTP logs dominant Linux - Security 1 08-24-2004 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration