Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - Fedora17

4 bytes added, 10:39, 18 March 2011
no edit summary
{{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:** <br /><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: ** <br /><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.
=== Investigation 5: How do you use ssh to tunnel X. ===
13,420
edits