Intermediate Linux & Shell Scripting
Q63 / 100

What is the purpose of "ssh-keygen" and public/private key authentication for SSH?

Correct! Well done.

Incorrect.

The correct answer is A) "ssh-keygen" generates a public/private key pair; the public key goes on the server (in ~/.ssh/authorized_keys), while the private key, kept secret on the client, proves identity during login for password-less authentication

A

Correct Answer

"ssh-keygen" generates a public/private key pair; the public key goes on the server (in ~/.ssh/authorized_keys), while the private key, kept secret on the client, proves identity during login for password-less authentication

Explanation

SSH public key authentication relies on asymmetric cryptography: the server verifies a signature made with the client's private key against the corresponding public key it has on file, avoiding the need to transmit passwords.

Progress
63/100