NETWORK MEDIA

HOW TO FTP


WHAT IS FTP AND SFTP?

FTP stands for File Transfer Protocol. It is a standard network protocol used to transfer files between computers, generally between a client and server. An FTP client is a desktop application that lets you transfer files from your computer to a remote server. It is most commonly used to upload files to a public web server for a website.

FTP pre-dates HTTP and was not developed to be a secure protocol, so it has many vulnerabilities. SFTP (SSH File Transfer Protocol, or Secure File Transfer Protocol) is a newer protocol designed by the Internet Engineering Task Force to provide secure file transferring between known clients and hosts. We will use SFTP to transfer our files securely.

CONNECTING WITH CYBERDUCK

  1. Click the Open Connection icon near the top left.
  2. In the dialogue box, choose SFTP (SSH File Transfer Protocol). DO NOT CHOOSE FTP.
  3. For server name, enter ftp.dma.ucla.edu and default port 22.
  4. Enter your username and DMA support password.
  5. The first time you do this, you can select to add to keychain (if you're on your personal computer).
  6. You may be prompted to accept a "fingerprint" for the server on your first time logging in. Click "Allow."

TRANSFERRING FILES

  1. Your files are located inside public_html
  2. You can drag and drop files and folders inside here to upload to the server or click on the Action menu and choose Upload. You can also choose to rename files, duplicate, delete, etc.
  3. Your files are located at http://users.dma.ucla.edu/~yourusername.

OTHER FTP APPLICATIONS

BASIC INFO REQUIRED

To connect via a FTP connection you need to know:

  • Server name ftp.dma.ucla.edu and the default port: 22
  • Username (your UCLA ID)
  • Password (your DMA_Support password)

YOUR PERSONAL WEBSPACE

The public_html folder in your home directory is the root directory of your web space, and where you may create your personal website. It has been pre-configured with the correct permissions to allow file placed inside to be accessed online. A file called foo.html in that directory will be available online as: http://users.dma.ucla.edu/~yourusername/foo.html

The special file index.html or index.php is what is brought up automatically if you do not specify a filename at the end of your URL (eg: http://users.design.ucla.edu/~yourusername).

PLEASE NOTE: if you do not have an index.html file and type the URL without a filename at the end, you will get an error message (access forbidden). This is for your own protection, as it prevents people from browsing through your directory when you are not ready for them to do so.

NOTE1: Permissions File permissions matter. All files in the public_html directory should be world-readable in order to ensure their availability online. Similarly, all directories should be world readable and executable. Most clients will deposit the files in the correct manner, but there have been some reports that moving whole folders from other parts of your home directory to your web area may mess up permissions depending on your client.

NOTE2: CAPITALIZATION MATTERS! That is to say, index.html and iNdex.html are NOT the same files. In order for your site to work properly, you must make sure that both the filenames and the HTML that refers to the filename use the same casing. Since many operating systems by default hide or pretty the actual cases of their filenames, I recommend either turning off those features (if you know how) or use an SFTP client that shows you how the files actually look when uploaded.