Indiana University
University Information Technology Services
  
What are archived documents?

With MacSSH, BetterTelnet, and NCSA Telnet, how do I use FTP to transfer files between my computer and a remote host?

MacSSH, BetterTelnet, and NCSA Telnet have built-in FTP servers. This capability allows you to connect to a remote host, select files from your computer, and then transfer them to the remote host. To set up the program to do this, follow these steps:

  1. In MacSSH and BetterTelnet, from the Edit menu, select FTP Server... . In NCSA Telnet, from the Edit menu, select Preferences, then FTP Server.

  2. Click the server mode to On, Username & Password Required.

    Warning: Though it is an option, do not choose On, No Password Needed, as it will allow anyone on the Internet to connect to your computer and access all of your files.

  3. Click OK. Then, from the Edit menu, select FTP Users... . In NCSA Telnet, from the Edit menu, select Preferences, then FTP Users.

  4. In the window that opens, click New, then create a username and password for yourself. Click OK, then OK again.

  5. If you are not already connected to the remote host, then from the File menu, select Open Connection... . In the window that opens, in the "Host Name:" or "Host/Session Name:" field, enter the IP address or name of the host to which you wish to connect. Click Connect. When prompted, enter your username and password for the remote host to which you are connecting.

  6. To run FTP, from the Network or Net menu, choose Send FTP Command. The command that is then automatically entered for you is: ftp -n IP-number IP-number is replaced by the four-part IP number of the computer you are using (e.g., 129.79.123.45).

  7. Once you are logged in, use the get command to upload to the remote host or the put command to download to your computer. At the FTP prompt, enter the appropriate command below, replacing filename with the name of your chosen file: get filename put filename
  8. When you're finished transferring files, repeat steps 1 and 2 above, except turn the FTP Server option off. Click OK.

If you have a group of files in one directory that you wish to transfer, you can use the command mget or mput instead of entering get filename and put filename, respectively. For each file in the directory, you will be asked whether you want to transfer it or not. For each file, press  y  for yes, or  n  for no.

If your file is a plain ASCII text file, you do not need to change the transfer mode. If it has any other formatting codes, such as word processor or spreadsheet codes, or is a binary file such as a graphics file, you need to set the transfer mode to binary. Before you transfer the document, enter: binary

For help on FTP commands or a list of commands, enter either of the commands below: help command help To exit from FTP, enter either of the commands below: bye quit

Also see:

This is document acen in domain all.
Last modified on December 13, 2005.
Please tell us, did you find the answer to your question?