Changes

Jump to: navigation, search

Tutorial6: File Transfer / Sending Email Messages

171 bytes added, 18:44, 27 January 2020
INVESTIGATION 1: USING SECURE COPY
# Change back to your '''home''' directory and confirm that you are located in your ''home'' directory.<br><br>Let's run a '''shell script''' to check to make certain that you created the correct directories<br>and that you created the '''myfile.txt''' file (with correct file contents) in the '''~/from''' directory<br>in order to practice using the ''scp'' Linux command.<br><br>
# Issue the following Linux command to run a checking script: <span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week6-check-1</span><br><br>
# If you encounter errors and re-run the checking script until you receive a congratulations message, and proceed to the next step.<br><br>'''NOTE:''' In order to learn to As mentioned we will simulate using the scp files to on another instance of our Matrix server account. <br><br><To make this work, we will need to obtain edit a Linux server we can pratice with. You will perform the following steps "start-up" file to obtain place a free Linux account:special series of commands<br><br># Open Use a web-browser and go text editor to edit the following webstart-site: httpsup file:'''~//sdf.org/bashrc'''<br><br># Enter the following text (shown below) at the TOP of this file:<br><span style="font-family:courier;font-weight:bold">[[ $- == *i* ]] || return </span><br><br>
# Although you are in your Matrix account, issue the following Linux command (i.e. yoursenecaid is YOUR Seneca ID):<br><span style="color:blue;font-weight:bold;font-family:courier;">sftp yoursenecaid@matrix.senecacollege.ca</span><br><br>
# When prompted, enter your Matrix password.<br><br>
13,420
edits

Navigation menu