Sponsored Content
Full Discussion: ftp command
Operating Systems Linux ftp command Post 80275 by nymus7 on Friday 5th of August 2005 04:17:23 AM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. AIX

ftp command

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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
netrc(5)							File Formats Manual							  netrc(5)

Name
       netrc - file used by ftp auto-login procedure (.netrc)

Description
       The  file  contains  frequently needed options for transfers.  The file resides in the owner's home directory on the machine from which the
       owner initiates the file transfer.  If the file includes passwords, set permissions on the file with so that only the owner has	read  per-
       mission.

       The file uses the following format:

       o    Each line of the file defines options for a specific machine.

       o    A line in the file can be either a machine line or a default line.

       o    The default line must be the first line in the file if it is present.

       o    Fields in a default line appear in this order: default, default machine name.

       o    Fields in a machine line appear in this order: machine, machine name, options.

       o    Fields on each line are separated by spaces or tabs.

       The following are valid options for a machine line:

       -------------------------------------------------------------------
       Option	  Parameter	 Default      Description
       -------------------------------------------------------------------
       machine	  machine name	 none	      Identifies a remote
					      machine name
       login	  name		 local name   Identifies user on the
					      remote machine
       password   password	 none	      Password for remote
					      login name
       account	  password	 none	      Additional account password
       macdef	  macro name	 none	      Defines a macro like the
					      ftp macdef command
       -------------------------------------------------------------------

Example
       This is an example of a file:
       machine cactus login smith
       machine nic.ddn.mil login anonymous password anonymous
       machine palm.stateu.edu login smith password ualonerwelcome
       macdef byenow
       quit

       macdef ls
       dir

       The first line allows to log Smith into the machine after prompting for and receiving Smith's password, as shown in this example:
       $ ftp cactus
       Connected to cactus.tech.edu
       FTP server ready.
       Password required for SMITH.
       User logged in
       ftp>

       The second line of the file allows the user to perform an anonymous transfer after typing this command:
       $ ftp nic.ddn.mil
       See for a description of anonymous FTP transfers.

       The  third  line allows Smith to log into the machine Smith will not be prompted for a password because this machine line includes password
       information.  Because the file includes password information, the file must not have read permission set for world and group.

       The lines are macro definitions, which operate much like shell aliases.	A blank line must follow each macro definition to signal  the  end
       of the macro.  The first macro definition defines as an alias for the command.

See Also
       ftp(1c)

																	  netrc(5)
All times are GMT -4. The time now is 11:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy