ssh Flashcards
SSH
Secure Shell
Procides a secure channel over an insecure network
What does SSH replace?
Replaces telnet, rcp, rlogin, rsh
Location of authorized public keys
~/.ssh/authorized_keys
Where does private key come from? (client/server)
client
key management commands
ssh-keygen (creates key pairs)
private key == id_rsa
public key == id_rsa.pub
SSH Port Forwarding
Usually admin/file transfer, creates encrypted connection where un-encrypted traffic can be sent
Used to get around firewalls
Three types of Port Forwarding
Local Port Forwarding
Remote Port Forwarding
Dynamic Port Forwarding
Local Port Forwarding
Client on laptop tunnels to SSH server… Typically used to get around firewalls
Remote Port Forwarding
SSH server listens for connections on a configured port (opposite of remote port forwarding)
Dynamic Port Forwarding
Turns SSH client into a Secure Sockets (SOCKS) proxy, which allows any Internet connection to be requested through a proxy
What is Secure Shell Protocol Used in
SFTP and SCP
SCP/SSH port
port 22
SFTP
secure version of FTP, SCP just copies files