Unix FTP, NCFTP and NCFTPPUT for Unix Users

Unix FTP

A standard interactive Unix FTP client program.
To publish using ftp
  1. Login to the time-sharing hosts machines.

    telnet uststf 
     --- or ---
    telnet uststu
    

  2. Change to the directory where your web pages reside.

    cd public_html
    

  3. Issue the following command in the command prompt.

    ftp ihome.ust.hk
    

    1. Type "bin" to change to binary mode.
    2. Use commands like "mput" and "put" to upload your files.
    3. After complete transfer your files, use "bye" to exit ftp program.


NCFTP

ncftp works similar as standard UNIX ftp client. Besides that, it provides additional features such as "chmod" to change permission mode bit on remote files.


NCFTPPUT

ncftpput is a very handy and easy-to-use ftp client program which can let you publish the whole web site by just issuing one command. It is also flexible that you can only choose specific files to publish.
To publish using ncftpput
  1. Login to the time-sharing hosts machines.

    telnet uststf 
     --- or ---
    telnet uststu
    

  2. Change to the directory where your web pages reside.

    cd public_html
    

  3. Issue the following command in the command prompt. This command enables you to select individual files to transfer. You should input your password (ITSC network password) when prompted.

    ncftpput -u <username> ihome.ust.hk <remote-dir> <local-files...> 
    

    Arguments:  
    -u <username>specify user name
    <remote-dir> your web space directory in iHome server
    <local-files> files in your local machine that you want to transfer to remote machine

    e.g. User ccdemo want to transfer index.html and about.html to the root directory of his web space in iHome server.

    ncftpput -u ccdemo ihome.ust.hk / index.html about.html
    

    Note: Your web space in "iHome" server is the same as the "/" directory.

  4. If you would like to publish a whole directory tree to your iHome web space, use the following command instead. Input your ITSC network password when prompted.

    ncftpput -R -u <username> ihome.ust.hk <remote-dir> <local-files...> 
    

    Arguments:
    -R recursive mode
    -u <username> specify user name
    <remote-dir> your web space directory in iHome server
    <local-files> files in your local machine that you want to transfer to remote machine

    e.g. User ccdemo want to transfer the current directory tree to the root directory of his web space in iHome server.

    ncftpput -R -u ccdemo ihome.ust.hk / .