SSH Flashcards
What is SSH
The SSH protocol uses encryption to secure the connection between a client and a server. All user authentication, commands, output, and file transfers are encrypted to protect against attacks in the network.
What do servers require in order for a client to make an ssh connection to it?
sshd (open ssh deamon)
Authentication methods
password
public/private key pair
host based
Generating ssh key
ssh-keygen
Where is the private key stored?
~/.ssh/id_rsa
Where is the public key stored?
~/.ssh/id_rsa.pub
Where does the server store the clients public key?
authorized_keys file
connecting to server
ssh username@ipaddress
Adding an identity
ssh-add ~/.ssh/id_rsa
Where is teh authorized_keys file stored on the host server?
in the user folder. Each user needs their own authorized_keys file.
Default port for ssh
22