Transferring files using FTP

FTP server to Hercules

In some sections of your labs, you will be asked to transfer some documents, for example, sample C++ applications from FTP server -- the CS Department ftp server, to Hercules -- the machine where you have your accounts.  To do this you use the  command-line   FTP program located on Hercules.

The following is a sample session showing how to transfer hello.cpp, from FTP server's pub/class/110/ftp/cpp directory to your Hercules account.
First, from Hercules, change to the directory where you want to store this file, and then follow the following procedures.
Note: The commands in red are those that you are supposed to enter.  The instructions for responding to particular prompts are in bold.

hercules[1]% ftp ftp
220-       Welcome to the Computer Science Department
220-            at the University of Regina's
220-               Anonymous FTP Server.
220-           Access to this system is provided
220-         in support of education and research.
220-        Login with User ID 'ftp' or 'anonymous'.
220-  Please provide your e-mail address as the Password.
220-         All access to this system is Logged.
220-          Unauthorized access is prohibited.
220 HERMES.CS.UREGINA.CA FTP server ready.
Name (ftp:guili): anonymous
331 Guest login ok, type your name as password.
Password:		(JUST TYPE IN YOUR WebMail E-Mail Address)
230 Guest login ok, access restrictions apply.
ftp> ascii       (NOTICE YOU MUST ENTER THE ascii MODE) 
200 Type set to A.
ftp> cd pub/class/110/ftp/cpp
250 CWD command successful.
ftp> get hello.cpp
200 PORT command successful.
150 Opening ASCII mode data connection for 'hello.cpp' (587 bytes).
226 Transfer complete.
local: hello.cpp remote: hello.cpp
612 bytes received in 0.004 seconds (149.83 Kbytes/s)
ftp> quit
221 Goodbye.

Hercules to a PC

To transfer files from Hercules to PC, a program called WinSCP Windows Secure Copy Client can be used.
Here is a link for using the WinSCP Transfer Program.

Copyright: Department of Computer Science, University of Regina.