With Emacs you can bring in a file from a remote host just like to find a file on the local host. Suppose you want to get file ~u4221/test1.f from f.nersc.gov, type:
C-x C-f /f.nersc.gov:~u4221/test1.f
The file will appear in the Emacs window if your `.netrc
' has an entry
somthing like:
machine f.nersc.gov login u4221 password xxxyyy
Otherwise, password is required. See FTP, for additional information.
Read man OtherFun