13,420
edits
Changes
→INVESTIGATION 2: USING SECURE FILE TRANSMISSION CONTROL PROTOCOL
# 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>
# Issue the following sftp command to create a directory on your remote server: <span style="color:blue;font-weight:bold;font-family:courier;">mkdir remote</span><br><br>
# Issue the following sftp command to confirm that the '''remote''' directory has been created in your remote server's home directory:<br><span style="color:blue;font-weight:bold;font-family:courier;">ls</span><br><br># Issue the following command to change to the '''remote''' directoryon your remote server:<br><span style="color:blue;font-weight:bold;font-family:courier;">cd remote</span><br><br># Issue the '''pwd''' sftp command to confirm that you have changed to the ''remote2'' directory on your remote server.<br><br># Issue the following sftp command to change to the '''local''' directory on your local server:<br><span style="color:blue;font-weight:bold;font-family:courier;">lcd local</span><br><br># 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>
# x<br><br>