© 2022 HyQuest Solutions
134
Appendices
Everything in
red
is the debugging output which shows the actual FTP commands being sent to the server and the
responses generated from those commands. Normal server output is shown in black, and user input is in
bold
.
Notice the difference in the PORT command in this example as opposed to the active FTP example. Here, we see a port
being opened on the server (192.168.150.90) system, rather than the client. See the discussion about the format of the
PORT command above, in the
.
testbox1: {/home/p-t/slacker/public_html} %
ftp -d testbox2
Connected to testbox2.slacksite.com.
220 testbox2.slacksite.com FTP server ready.
Name (testbox2:slacker):
slacker
---> USER slacker
331 Password required for slacker.
Password:
TmpPass
---> PASS XXXX
230 User slacker logged in.
---> SYST
215 UNIX Type: L8
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
passive
Passive mode on.
ftp>
ls
ftp: setsockopt (ignored): Permission denied
---> PASV
227 Entering Passive Mode (192,168,150,90,195,149).
---> LIST
150 Opening ASCII mode data connection for file list
drwx------ 3 slacker users 104 Jul 27 01:45 public_html
226 Transfer complete.
ftp>
quit
---> QUIT
221 Goodbye.