Changes

Jump to: navigation, search

Tutorial6: File Transfer / Sending Email Messages

1,006 bytes added, 11:09, 28 January 2020
INVESTIGATION 2: USING SECURE FILE TRANSMISSION CONTROL PROTOCOL
# Issue the '''pwd''' sftp command to confirm that you have changed to the ''local'' directory on your local server.<br><br>
# Issue the following Linux command to transfer your ~/local/thefile.txt file to the ~/remote directory on your remote server:<br><span style="color:blue;font-weight:bold;font-family:courier;">put thefile.txt</span><br><br>
# Issue the '''ls''' sftp command to confirmed that you transferred/copied the file: thefile.txt<br><br>Let's create another directory on your local server called storage so we can learn to download a file from your remote directory.# Issue the following sftp command to exit the sftp utlilty: <span style="color:blue;font-weight:bold;font-family:courier;">exit</span><br><br># Issue the following Linux command to confirm that you are back in your original server: <span style="color:blue;font-weight:bold;font-family:courier;">hostname</span><br><br>Let's run a shell script to see if you correctly transferred/copied files between your local and remote servers.<br><br># Make certain that your current directory is your home directory.<br><br># Issue the following Linux command to run a checking script to ensure you created the CORRECT directories, created and copied the correct files: <br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week6-check-2</span><br><br># *If you encounter errors and re-run the checking script until you receive a congratulations message.<br><br>:In the next investigation, you will use the sftp Linux command to transfer (i.e. copy) files between servers.<br><br>
:In the next investigation, you will learn an alternative way to transfer a file to another computer server by sending an e-mail message with an attached file.
13,420
edits

Navigation menu