Changes

Jump to: navigation, search

Tutorial6: File Transfer / Sending Email Messages

93 bytes added, 10:32, 23 January 2021
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 <b>~/remote</b> directory and confirm that you have changed to that directory.<br><br></li><li>Use a text editor to create a text file called <b>myfile.txt</b><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><b>Save</b> editing changes to your ''myfile.txt'' file and exit your text editor.<br><br></li><li>Change back to your <b>home</b> directory and confirm that you are located in your <i>home</i> directory.<br><br></li><li>Let's run a <b>shell script</b> to check that you created the correct directories<br>and that you created the <b>myfile.txt</b> file (with correct file contents) in the <b>~/from</b> 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><b>NOTE:</b> We will now learn to transfer files between your <b>(local) home computer</b> and your <b>(remote) Matrix Linux server</b>.<br><br></li><li>Exit your Matrix ssh session, but remain in the OS terminal on your <u>home</u> computer.<br><br></li><li>The <b>mkdir</b> command works both in <i>MS Windows and /UNIX/Linux/MacOSx computers<i>. <br>Issue the following command to create a directory called <b>local</b> in your current directory.:<br><span style="color:blue;font-family:courier;font-weight:bold;">mkdir local</span><br><br></li><li>The <b>cd</b> command works both in MS Windows and UNIX/Linux/MacOSx computers. Issue the following command to change to the local directory: <span style="color:blue;font-family:courier;font-weight:bold;">cd local</span><br><br>The <b>SSH package</b> on your <i>home computer</i> and on the <i>Matrix Linux server</i> contain a <b>suite</b> (i.e. <b>collection</b>) of secure utilities <br>including <b>ssh</b>, <b>scp</b> and <b>sftp</b>.</li></ol>
13,420
edits

Navigation menu