Chapter 18: OpenSSH: Secure Network Communication

Linux Operating System

A Practical Guide to Fedora and Red Hat Enterprise Linux

Unit 7: Linux Network Services

Chapter 18: OpenSSH: Secure Network

Communication

By Fred R. McClurg

© Copyright 2013, All Rights Reserved

Secure Systems

 scp : Secure Copy

◦ Performs a secure and encrypted copy from one system to another.

 ssh : Secure Shell

◦ Enables secure and encrypted logins between remote systems.

scp: Example

Syntax: scp \ user@fromHost:srcFile \ user@toHost:destFile

scp: Scenario

Problem:

◦ User abc wants to copy the ~/.bashrc

file from his or her local computer to a system named bravo

Which is the correct solution?

◦ cp ~abc/.bashrc bravo:~abc

◦ scp ~/.bashrc bravo:~abc

◦ scp abc@bravo/.bashrc ~

◦ scp ~/.bashrc abc@bravo

scp: Scenario

Which is the correct solution?

1.

cp ~abc/.bashrc bravo:~abc

2.

scp ~/.bashrc bravo:~abc

3.

scp abc@bravo/.bashrc ~

4.

scp ~/.bashrc abc@bravo

Answers:

1.

Creates file named “bravo:~abc”

2.

Works!

3.

Copy wrong direction. Missing colon

4.

Should have colon at end. Creates file named “abc@bravo”