Which TWO statements about OpenSSH server host keys are correct? (Choose two.)

LPIC-1 Exam 102-500, objective 110. Security medium

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.

The options

Choose 2.

Correct They live in /etc/ssh, are created when the OpenSSH server package is installed or first started, and identify the machine rather than any user.

Correct. Files such as /etc/ssh/ssh_host_ed25519_key and its .pub counterpart belong to the host. sshd offers the public half during the key exchange so a client can recognise the machine.

Correct The private halves must be readable only by root, and sshd refuses to use a host key file whose permissions are too open.

Correct. A private host key readable by anyone would let any local user impersonate the server, so sshd checks the mode at startup and rejects the key otherwise.

Not correct Each user gets their own host key pair under ~/.ssh when they first log in.

Wrong. The pairs under ~/.ssh, such as id_ed25519 and id_rsa, are user identity keys used for client authentication. Host keys are per machine and are never generated per user.

Not correct The server sends the private host key to the client, which uses it to verify the server's identity.

Wrong, and it would destroy the security of the protocol. Only the public half is transmitted; the server proves possession of the private half by signing data in the key exchange.

Not correct Incoming public-key logins are authenticated against the host keys, which is why ~/.ssh/authorized_keys is optional.

Wrong. User authentication is checked against the keys listed in the target user's ~/.ssh/authorized_keys. Host keys authenticate the server to the client, never the other way round.

Why

Two independent authentications happen in one SSH session: the server proves who it is with its host key, and the user proves who they are with a user key or a password. The two live in different places, /etc/ssh/ssh_host_* for the machine and ~/.ssh/id_* plus ~/.ssh/authorized_keys for people, and in both cases only the public half ever leaves the machine that holds the private one. ssh-keygen -A regenerates any missing host key types in the default locations.

Where this comes from

Cited
manual page sshd(8)

Practise this

Reading one question is not practice. The trainer will draw a short set from objective 110 and space the ones you get wrong.

Practise LPIC-1 Exam 102-500

More questions on this objective

All questions on Security

Practise LPIC-1 Exam 102-500