Changes

Jump to: navigation, search

Tutorial6: File Transfer / Sending Email Messages

1,116 bytes added, 08:54, 28 January 2020
INVESTIGATION 2: USING SECURE TRANSMISSION CONTROL PROTOCOL
# Make certain that you are logged into your Matrix account and are located in your '''home''' directory.<br><br>
# Issue the following Linux commands to create the following directories:<br><span style="color:blue;font-weight:bold;font-family:courier;">mkdir ~/local<br>mkdir ~/remote</span><br><br>
# Change to the '''~/local''' directory.<br><br>
# Use a text editor to create a text file called '''thefile.txt'''<br><br>
# Enter the following two lines displayed below:<br><span style="font-family:courier;font-weight:bold;">This is my file called thefile.txt<br>It is also small file</span><br><br>
# Save editing changes and exit your text editor.<br><br>
# 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 '''~/local''' 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-3</span><br><br>
# 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>'''NOTE:''' You may be required to enter '''yes''' to have the public key shared.<br><br>You are now in the '''sftp command prompt''' where you are expected to issue sftp commands.<br>Please refer to the table of sftp commands in the '''KEY CONCEPTS''' section for reference.<br><br>
# Issue the following sftp command: <span style="color:blue;font-weight:bold;font-family:courier;">pwd</span><br><br>What is the pathname? Which server does this represent: local or remote?<br><br>
13,420
edits

Navigation menu