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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-03-2003, 01:29 PM
|
#1
|
Member
Registered: Jan 2002
Posts: 157
Rep:
|
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
|
|
|
03-03-2003, 05:20 PM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127
Rep:
|
try using ncftp or lftp. miight be a liimtation of the plain ftp tool.
|
|
|
03-03-2003, 05:41 PM
|
#3
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
If you are ftp'ing into a Windows box why are you using the ls command? Wouldn't it be dir instead?
|
|
|
03-03-2003, 08:39 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
03-04-2003, 08:33 AM
|
#5
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
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
|
|
|
03-04-2003, 11:56 PM
|
#6
|
Member
Registered: Jan 2002
Posts: 157
Original Poster
Rep:
|
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?
|
|
|
03-05-2003, 07:48 AM
|
#7
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
what speed is your modem/connection?
try to first get a smallish file to check if size/duration is an issue.
|
|
|
03-05-2003, 02:19 PM
|
#8
|
Member
Registered: Jan 2002
Posts: 157
Original Poster
Rep:
|
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
|
|
|
03-05-2003, 02:51 PM
|
#9
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
so you were able to "get" a smaller file?
|
|
|
03-06-2003, 06:12 AM
|
#10
|
Member
Registered: Jan 2002
Posts: 157
Original Poster
Rep:
|
no , not at all, it just hangs
|
|
|
03-06-2003, 07:46 AM
|
#11
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 06:05 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|