Professional Documents
Culture Documents
‘SSH’
Issue Date:
Revision:
Secure?
text
clear
Servers
Terminal clea
r text
Routers
SSH – encrypted channel
e d t e xt
pt
encry
Servers
Terminal encr
ypte
d text
Routers
Secure Shell (SSH)
• Authenticated and encrypted shell access to a
remote host
• Client-server model
• TCP 22
authorized_keys
– server generates a random
number Encrypted
– encrypts the random using client’s random
public
– sends the encrypted random as a Key Challenge
key-challenge to client
How it works - Key Response
Encrypted
3. Client decrypts the random random
number with its private key
🗝
Decryption
(Private Key)
4. Creates an MD5 hash of
the random and the Server SSH
session ID Random Session ID
– sends back to the server as
the key response MD5
• encrypted with shared Master key
HASH
Key Response
How it works - Access
ssh-copy-id <user@server-ip>
• That’s it J
Key generation - “Windows OS”
• Download the following tools for the lab:
– PuTTY (the Telnet and SSH client itself)
– PuTTYgen (an RSA and DSA key generation utility)
– https://www.chiark.greenend.org.uk/~sgtatham/putty/lates
t.html
Lab Exercise
1. Generate your ssh key-pair
– Unix/Linux/OS X: follow the examples in the slide
– Windows OS: follow the lab manual ssh_lab.pdf