keystroke.5 (2012 03)
k
keystroke(5) keystroke(5)
200 PORT command successful.
(Sat May 14 16:26:58 2011) RETR myfile
150 Opening BINARY mode data connection for myfile (39 bytes).
226 Transfer complete.
(Sat May 14 16:27:01 2011) RMD myfile
550 myfile: Not a directory.
(Sat May 14 16:27:05 2011) DELE myfile
550 myfile: Not owner.
(Sat May 14 16:27:13 2011) QUIT
221-You have transferred 39 bytes in 1 files.
221-Total traffic for this session was 959 bytes in 2 transfers.
221-Thank you for using the FTP service on myhost.com.
221 Goodbye.
#
Below is the corresponding ftp session as seen on the ftp client host. Notice that, although the keystroke
log above captures the essence of the events that occurred during the ftp session (i.e., retrieval of a file
and two unsuccessful attempts to delete the file), the input logged does not match the actual keystrokes
entered by the user, nor does the logged output match the output as seen by the user on the ftp client
host.
> ftp myhost.com
Connected to myhost.com.
220 myhost.com FTP server (Revision 5.0 Version wuftpd-2.6.1 Thu Apr 29
04:59:48 GMT 2010) ready.
Name (myhost.com:forrest):
331 Password required for forrest.
Password:
230-No directory! Logging in with home=/
230 User forrest logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 /" is current directory."
ftp> cd /var/tmp
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
total 16
drwxr-xr-x 2 root root 96 Mar 15 16:41 lost+found
-rw-rw-rw- 1 root sys 39 May 14 16:15 myfile
226 Transfer complete.
ftp> get myfile
200 PORT command successful.
HP-UX 11i Version 3: March 2012 − 3 − Hewlett-Packard Company 3