SFTP (Secure File Transfer Protocol) with CoreFTP

SFTP (Secure File Transfer Protocol) with CoreFTP

The Secure File Transfer Protocol is a network protocol that provides secure file access, file transfer, and file management functionality. Below are the procedures on using SFTP connection for CoreFTP:

A. Set up a secure file transfer connection

    1. Start Core FTP (download from http://www.coreftp.com/download.html (Core FTP LE 2.2 : free version)).
    2. In the Site Manager window, click New Site button. In the Site Name field, enter the remote system you intend to connect to (web.hku.hk in this example).
    3. Enter the remote system you intend to connect to in the Host/IP/URL field.Depending on the remote system you intend to connect to, the remote host server names are tabulated below:
      Remote ServerPurpose
      web.hku.hkpersonal websites
      hpc2015-file.hku.hkhigh performance computing cluster
      htclogin.hku.hkhigh throughput computing service

      For example, if your personal website is http://web.hku.hk/~yourUID, enter web.hku.hk in the Host/IP/URL field.

    4. Enter your account name (HKU Portal UID) in the Username field (you must have an account on the web host server).
    5. Enter your account password (HKU Portal PIN) in the Password field. Uncheck Don’t save password box.

sftp coreftp 01

    1. In the Connection drop-down menu, select SFTP/SSH.

sftp coreftp 02

    1. Click the Advanced button.
    2. Select Transfers.
    3. Check Do not use MDTM for date/time. Click OK.

sftp coreftp 03

    1. In the Site Manager window, click the Connect button.
    2. You will see a pop-up window as illustrated below. This is a feature of the SSH protocol. It is designed to protect you against a network attack known as “spoofing” – secretly redirecting your connection to a different computer in order to get your password. Click Yes to continue.

sftp coreftp 04

    1. In the Core FTP window, the local system (your PC) appears on the left window and the remote system appears on the right window.

sftp coreftp 05

B. Upload a file from PC to server

  1. To upload a file from PC to server, choose your destination directory on the right window. For example, for personal web site on the server web.hku.hk, the directory name should be public_html.
  2. sftp coreftp 06
  3. Select the file you wish do upload in the left window.
  4. sftp coreftp 07
  5. Click on the sftp coreftp 08 button in the left window to transfer the file to your web server’s directory. You will see a “transfer complete” message when Core FTP has finished transferring the files.
  6. sftp coreftp 09

C. Download a file from server to PC

  • To download a file from server to PC, browse the file you wish do download in the right window.
  • Choose your destination directory in the right window e.g. Desktop.
  • Select the files on the server using the mouse button.
  • Click the button sftp coreftp 10 in the right window to transfer the file to your PC. You will see a “transfer complete” message when Core FTP has finished transferring the files.

D. Change read permission of web page

  1. Select the folder for hosting the web page e.g. ‘public_html’.
  2. Click to select the web page or web folder you wish to change its read/write permission.
  3. sftp coreftp 11
  4. Right click the chosen file or folder and click Properties.
  5. The following popup window allows you to change the ReadWrite and Execute permission by User (i.e. the login account user), Group and World (both Group and World means everyone). By default, the Read permission is for everyone.  If you want to change the permission setting, you can tick/clear the appropriate box, e.g. unchecking the box Read under World and Group means not readable by everyone.
  6. sftp coreftp 12

E. Exit CoreFTP

  1. To end your session, click File > Disconnect and Yes.
  2. sftp coreftp 13

    sftp coreftp 14

  3. To exit Core FTP, click the Exit button at the top right of the Core FTP Lite window and click OK.
  4. sftp coreftp 15
1
0