ftp command


 
Thread Tools Search this Thread
Operating Systems Linux ftp command
# 1  
Old 08-05-2005
ftp command

Hi there!
I've used the ftp command to transfert datas between linux to unix box.
The answer of this command, was:
Code:
ftp -A -v n0dark
Connected to n0dark.
220 n0dark FTP server (Version 4.1 Thu Sep 12 23:46:23 CDT 2002) ready.
Name (n0dark:root): ftpn0darkusr
331 Password required for ftpn0darkusr.
Password:*******
230-Last unsuccessful login: Wed Jul 20 17:33:23 DFT 2005 on ftp from ::ffff:167.31.1.20
230-Last login: Fri Aug  5 09:34:00 DFT 2005 on ftp from ::ffff:167.31.1.16
230 User ftpn0darkusr logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ascii
200 Type set to A; form set to N.
ftp> put data01
local: data01 remote: data01
'500' EPRT | 1|167.31.1.16|43526|: command not understood
200 PORT command successful 
150 Opening data connection for data01.
100% |***********************************************************|  1087       5.63 MB/s    --:-- ETA
226 Transfer complete.
1087 bytes sent in 00:03 (0.35 KB/s)
ftp>

It strange because the transfert was complete and it brings two messages, the first is successful from PORT command and the second is an error from EPRT command!
So, It seems that linux use both EPSV/EPRT (rfc2428) and PORT/PASV (rfc959)! I'm using the return code of the command in a script and i don't want to receive the EPRT message... Smilie
Has anyone an idea why linux do that? It's possible to disable the EPSV/EPRT command?
Regards
# 2  
Old 08-09-2005
Not sure if this will help or not but try setting your passive mode. Also, please post what ftp you are using (post the OS and version too).
# 3  
Old 08-16-2005
epsv is for ipv6

Just type in
epsv

which will toggle epsv off/on

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ftp command

do we have any command run_ftp or this is a function. run_ftp -d $dir $fname $ddir $file b (2 Replies)
Discussion started by: ramkumar15
2 Replies

2. UNIX for Dummies Questions & Answers

ftp command

Hi, I am new to shell scripting, I just wan to know that if i want to do ftp that is I have the url of the remote server that is pngpcdb1.walmat.com , Now i want to do ftp and want to transfer some files...how ftp command in unix would help me in that...!!:confused: (3 Replies)
Discussion started by: rahulsxn660
3 Replies

3. UNIX for Dummies Questions & Answers

get command to ftp subdirectories at once

How do I use the "get" command in unix to ftp a directory with many sudirectories at one shot? Any idea anyone?? (3 Replies)
Discussion started by: lydiaEd
3 Replies

4. IP Networking

how to deny someone to use ftp command ?

hi,all, i have a question to trouble you. a workstation named AAA, and open the ftp services to permit user download and upload files. i have root password. a pc install windows 2k named BBB, someone install a serv-u ftp ( a ftp server software ) to transfer data. i don't have the... (4 Replies)
Discussion started by: yarx
4 Replies

5. Shell Programming and Scripting

FTP command ?

yesterday i was given an FTP command to use on UNIX Solaris and it was very straight forward and that's probably why i don't remember it, i only remember convoluded things apparently! but it was something as simple as this: ftp xyz_abc.com but that's apparently not it, does anyone know... (2 Replies)
Discussion started by: bobk544
2 Replies

6. UNIX for Advanced & Expert Users

ls command in FTP

Hi , I am ftping one file from the remort server to local server. I have to choose the recent file from the remote server . To get the recent file i am using the following command. ftp -nvi $IP_ADDRESS user $USER_NAME $PASSWORD bin lcd $LOCAL_DIR cd $REMOT_DIR filename=ls -t ff*... (1 Reply)
Discussion started by: ammu
1 Replies

7. AIX

ftp command

How can i make ftp form my pc to my server ? (2 Replies)
Discussion started by: magasem
2 Replies

8. UNIX for Dummies Questions & Answers

Truss and the FTP command

I have been trying to perform the following command without success truss -feo truss.out ftp -nvd < ftpcmds.txt The error I am getting is "truss: cannot trace set_id or unreadable object file /usr/bin/ftp" I have tested the file that contains the ftp commands and it works fine with ftp... (5 Replies)
Discussion started by: canman
5 Replies

9. UNIX for Dummies Questions & Answers

FTP allo command

Hi there, It seems that the ftp command FTP: quote allo <byte size> does not initiate straight away? Why might this be, scenario below. I have had to up the byte limit in order to put a control file of 70K bytes on to a server. This placing of a control file is done at the beginning of a... (1 Reply)
Discussion started by: nhatch
1 Replies

10. UNIX for Dummies Questions & Answers

I need help concerning the FTP command

How can I use it to copy and get files from other machines. if anyone knows of this FTP command, please post all that you know about it here so I can learn more. (2 Replies)
Discussion started by: TRUEST
2 Replies
Login or Register to Ask a Question