Changes

Jump to: navigation, search

OPS235 Lab 7 - Fedora17

1,404 bytes added, 10:20, 16 March 2010
no edit summary
* Now we can ssh into fedora3 from fedora2 using 2 different authentication methods.
* Answer the Investigation 3 question in your lab log book.
 
=== Investigation 4: How do you use scp and sftp. ===
{{Admon/note | Note! | Complete this investigation on your fedora2 VM.}}
 
{{Admon/note | | There are 2 common command line tools for transferring files between hosts over an encrypted ssh connection, <code>scp</code> and <code>sftp</code>. <code>sftp</code> is an interactive file transfer program that functions much like an ftp client. }}
 
* To connect to a remote host type the command:
** <code>sftp ops235@fedora3</code>
* This will establish an interactive session after authentication.
* Type <code>help</code> to see the list of sftp commands at any time.
* The 2 main commands are <code>put</code> to copy a file from the local host to the remote host (upload) and <code>get</code> to copy a file from the remote host to the local host (download).
* Try using <code>sftp</code> to transfer files back and forth between hosts.
 
* As you did previously you can also use the <code>scp</code> command to copy files to and from remote hosts and even from one remote host to another.
* Use <code>scp</code> to copy your services file to the fedora3 host into the /tmp directory. (The path on a remote host follows the ''':''') using the command:
** <code>scp /etc/services ops235@fedora3:/tmp</code>
* Experiment with <code>scp</code> to copy a file from fedora3 directly to fedora1.
* Answer the Investigation 4 question in your lab log book.
9
edits

Navigation menu