Changes

Jump to: navigation, search

OPS235 Lab 7

194 bytes added, 09:50, 28 June 2016
no edit summary
=== Part 1: How do you use scp and sftp. ===
When you have created an the SSH serverservice is running, then users can then take advantage of secure shell tools (including the '''scp''' and '''sftp''' utilities).
The ssh client utility also contains many options to provide useful features or options when establishing secure connections between servers. One of these features is referred to as '''tunnelling''' - this term refers to running programs on remote servers (i.e. running the program on a remote server, yet interacting and viewing program on your local server. Since '''X-windows''' in Linux is a support <u>layer</u> to transmit graphical information efficiently between servers, ssh tunnelling becomes more useful and important to allow organizations to work efficiently and securely in a user-friendly environment.
# Switch to your '''centos1''' VM.
# To connect to Open a terminal, and remain logged in as a remote host type regular user.# Establish an sftp session with your centos3 VM by issuing the following command:<br /><b><code><span style="color:#3366CC;font-size:1.2em;">sftp ops235@centos3</span></code></b># This will establish an interactive session after authentication. # Type <b><code><span style="color:#3366CC;font-size:1.2em;">help</span></code></b> to see the list of sftp commands at any time.<br><br>Common Remote Server (eg. centos3) commands: '''pwd''', '''ls''', '''cd'''<br>Common Local Machine (eg. centos1) commands: '''!pwd''', '''!ls''', '''lcd'''<br><br>
# The 2 main commands are <b><code><span style="color:#3366CC;font-size:1.2em;">put</span></code></b> to copy a file from the local host to the remote host (upload) and <b><code><span style="color:#3366CC;font-size:1.2em;">get</span></code></b> to copy a file from the remote host to the local host (download).
# Try using '''sftp''' to transfer files back and forth between hosts.
12,858
edits

Navigation menu