Ein Beispiel
Eine Beispiel-Dateiübertragung. „S“ ist der Sender, der Benutzerprozess. „R“ ist die Antwort des entfernten Servers. Denken Sie daran, dass alle Serverantworten mit <NULL> abgeschlossen werden. Umfasst die Antwort mehr als eine Zeile, endet jede Zeile mit einem <CRLF>.
R: (listening for connection)
S: (opens connection to R)
R: +MIT-XX SFTP Service
S: USER MKL
R: +MKL ok, send password
S: PASS foo
R: ! MKL logged in
S: LIST F PS: <MKL>
R: +PS: <MKL>
Small.File
Large.File
S: LIST V
R: +PS: <MKL>
Small.File 1 69(7) P775240 2-Aug-84 20:08 MKL
Large.File 100 255999(8) P770000 9-Dec-84 06:04 MKL
S: RETR SMALL.FILE
R: 69
S: SEND
R: This is a small file, the file is sent without
a terminating null.
S: DONE
R: +MIT-XX closing connection