SSH Flashcards

1
Q

What is SSH

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do servers require in order for a client to make an ssh connection to it?

A

sshd (open ssh deamon)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Authentication methods

A

password

public/private key pair

host based

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Generating ssh key

A

ssh-keygen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where is the private key stored?

A

~/.ssh/id_rsa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where is the public key stored?

A

~/.ssh/id_rsa.pub

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where does the server store the clients public key?

A

authorized_keys file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

connecting to server

A

ssh username@ipaddress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Adding an identity

A

ssh-add ~/.ssh/id_rsa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where is teh authorized_keys file stored on the host server?

A

in the user folder. Each user needs their own authorized_keys file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Default port for ssh

A

22

How well did you know this?
1
Not at all
2
3
4
5
Perfectly