This is an old revision of the document!
File Transfer
The preferred method for file transfers is to use encrypted file transfer via the scp or sftp commands - https://linuxize.com/post/how-to-use-scp-command-to-securely-transfer-files/
Please note that standard FTP service (not sftp) to individual accounts is turned off for all of the Linux machines. This is because username and password information used when accessing FTP service is passed over the net unsecred, and can be stolen. Please do not attempt ot ftp into your account from another machine; it will not succeed, but can still compromise security!
The only FTP access that is allowed is anonymous FTP access to the Linux server, astronomy. The anonymous ftp area that is accessible can be seen directly from any of the Linux machines, in /home/ft. Upon account creation, there will be a directory /home/ftp/pu/username created; files placed here will be available to external users accessing astronomy via anonymous ftp. If you wish to allow external users to put files onto the FTP server, external users will need to cd to incoming/username after loggin inot the ftp server. You will be able to see files they have downloaded in /home/ftp/incoming/username from any of the Linux machines. Files uploaded inot the /home/ftp/incoming/ area will be owned by the user ftp, but can be deleted by anyone; copy thee files inot your area so that you will own them, and then please delete them form the incoming/ftp area. All large field in the incoming area older than 6 months may be automatically deleted to keep the arean from filling up.
SCP Examples
Copy a Remote File to a Local System using scp:
scp username@astronomy.nmsu.edu:/path/to/file/textfile.txt /local/directory
Copy a Local File to a Remote System with scp:
scp file.txt username@astronomy.nmsu.edu:/remote/directory