SSH/SCP/RCP 1 6/28/2016

advertisement
SSH/SCP/RCP
1
6/28/2016
BACKGROUND


What is a shell?

An interface for users to interact with the machine/kernel

Examples: MS-DOS, bash, csh, etc...
rlogin (remote login)

A utility released as part of the BSD Unix operating system 1983.

Allows users to log in to another host via a network

Important security issues - sends all information, including passwords,
unencrypted. Thus, it is very insecure and is extremely vulnerable to
malicious attacks over a network

Typically configured to not ask for a password, due to an assumed trusted
network

6/28/2016
Uses TCP port 514
2
SSH

Because rlogin is insecure over an untrusted network, SSH was
created to replace it in 1995

Uses a secure, encrypted channel for communication

Authentication is done using public-key cryptography

Typically uses TCP port 22

Many implementations for Windows, Mac, and Unix

Allows commands to be executed remotely

Supports tunneling of TCP ports and X11 (GUI) connections
3
6/28/2016
SSH USAGE

Example: Login to 'willow.mcsr.olemiss.edu' as user 'student’


> ssh bob@host.example.com
Example: Run the 'date' command as user 'student' on
'willow.mcsr.olemiss.edu’

> ssh bob@host.example.com date
4
6/28/2016
SCP AND RCP

commands copy files from one machine to another using a similar notation to cp

SCP is the secure version from the ssh package

Usage:


scp [-r] [[user@]host1:]file1
Example: Copy local file 'file1' to 'willow.mcsr.olemiss.edu‘

scp file1 student@willow.mcsr.olemiss.edu:/users/student/file1

RCP is the non-secure version

Usage:


rcp [-r] [[user@]host1:]file1
Example: Copy local file 'file1' to 'willow.mcsr.olemiss.edu‘

6/28/2016
rcp file1 student@willow.mcsr.olemiss.edu:/users/student/file1
5
Download