===============================================================================

           *** Connect To GFDL FTP Server From My Home Computer ***

o For convenience, cd to local directory from/to which files are to be
  transferred. For example, on a MAC "cd Desktop".

o For anonymous ftp access:
     ftp ftp.gfdl.noaa.gov
     Login in as username "anonymous" and password anything.
  Current directory is "/". "cd pub/jrl".

o For ftp access as a GFDL user:
     ftp ftp.gfdl.noaa.gov                 [First.Last & GFDL psswd]
  Current directory is "/pub/jrl".

o For sftp access as a GFDL user:
     sftp First.Last@ftp.gfdl.noaa.gov     [First.Last & GFDL psswd] 1
     sftp ftp.gfdl.noaa.gov                [First.Last & GFDL psswd] 2
     Provide GFDL password
  Current directory is "/pub/jrl".

  1 Works from within GFDL & from iMAC
  2 Works from within GFDL only [does not work from iMAC]

-------------------------------------------------------------------------------

           *** Use SCP To Copy Files Between Home Computer & GFDL ***

o From home computer log into the GFDL ssh server (to set up tunnel):
     ssh -l John.Lanzante -L 5906:jrl.gfdl.noaa.gov:22 ssh.gfdl.noaa.gov

o From the ssh server log into the GFDL computer (i.e. jrl in this case):
     ssh John.Lanzante@jrl

o The following commands are issued from a shell window on your home computer.
  Here the file on the GFDL side is "/pathname/file" whereas the file on the
  home machine is "/Users/{macuser}/pathname".

  * To transfer files from the GFDL computer to your home computer:
    scp -P 5906 John.Lanzante@localhost:/pathname/file /Users/{macuser}/pathname

  * To transfer files from your home computer to the GFDL computer:
    scp -P 5906 /Users/{macuser}/pathname John.Lanzante@localhost:/pathname/file

o Timing tests (4.52 GB file) [on Monday ~ 4:00-4:30PM]:

  * scp iMAC to /net2/jrl:      28 min 13 sec
  * sftp iMAC to ftp.gfdl:       7 min  7 sec (~10 Mb/sec? -- my router speed)
    sftp ftp.gfdl to /net2/jrl:  1 min 26 sec
    Sftp total:                  8 min 33 sec
  * Ratio 28:13/8:33 = 1693/513 = 3.3

o New timing tests (1.06 GB file) [Wed Dec 19, 2018 ~ 2AM]:
  * scp iMAC to /net2/jrl:      1 min 50 sec
  * scp /net2/jrl to iMAC:      1 min 50 sec
  * Scaling this to a (4.52 GB) 7 min 49 sec

-------------------------------------------------------------------------------

     *** FTP A File From Home Computer To GFDL Using A Windows Machine ***

o Create a directory with write permissions for all in "/ftp/jrl".

o On home computer place file to be transferred in C:\r

o From home computer run Start --> Run:  ftp ftp.gfdl.noaa.gov
  Login as anonymous, email as password.

o From ftp window
  * type "lcd C:"
  * type "binary" or "ascii"
  * cd to directory with write permissions for all
  * type "put file_name.suffix"
    IMPORTANT:
    File_name must include the suffix, e.g., "a.txt" for a text file

===============================================================================