13,420
edits
Changes
→INVESTIGATION 1: USING SECURE COPY
</tr>
</table><br><br>
<ol><li value="3">When you have issue the above ssh command, enter your password to login.<br><br></li><li>Issue the following Linux commands to create the following directory:<br><span style="color:blue;font-weight:bold;font-family:courier;">mkdir ~/remote</span><br><br></li><li>Change to the '''~/remote''' directory and confirm that you have changed to that directory.<br><br></li><li>Use a text editor to create a text file called '''myfile.txt'''<br><br></li><li>Enter the following two lines displayed below in your editing session:<br><span style="font-family:courier;font-weight:bold;">This is my file<br>It is a small file</span><br><br></li><li>'''Save''' editing changes to your ''myfile.txt'' file and exit your text editor.<br><br></li><li>Change back to your '''home''' directory and confirm that you are located in your ''home'' directory.<br><br></li><li>Let's run a '''shell script''' to check that you created the correct directories<br>and that you created the '''myfile.txt''' file (with correct file contents) in the '''~/from''' directory<br>before using the ''scp'' Linux command.<br><br></li></li>Issue the following:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week6-check-1</span><br><br></li><li>If you encounter errors, make corrections and then re-run the checking script until you receive<br>a congratulations message, and proceed to the next step.<br><br>'''NOTE:''' We will now learn to transfer files between your '''(local) home computer''' and your '''(remote) Matrix Linux server''''''Bold text'''.<br><br></li><li>Exit your Matrix ssh session, but remain in the OS terminal on your home computer.<br><br>The SSH package on your home computers on your Matrix Linux server have a suite of collection of secure utilities including '''ssh''', '''scp''' and '''sftp'''.</li></ol>