PrepAway - Latest Free Exam Questions & Answers

what do you need to do?

You have generated a DSA authentication key on host linux1.

In order to log into host linux2 with the new key, what do you need to do?

PrepAway - Latest Free Exam Questions & Answers

A.
Copy the new authentication key into /etc/ssh/sshd_config on linux2.

B.
Copy the new authentication key into $HOME/.ssh/authorized_keys on linux2.

C.
Copy the new authentication key into $HOME/.ssh/id_dsa on linux2.

D.
Copy the new authentication key into $HOME/.ssh/id_dsa on linux1.

E.
Log into linux2 using the command ssh –key.

Explanation:
From the man pages:
~/.ssh/authorized_keys Lists the public keys (RSA/DSA) that can be used for logging in as this user. The format of this file is described above. The content of the file is not highly sensitive, but the recommended permissions are read/write for the user, and not accessible by others. If this file, the ~/.ssh directory, or the user’s home directory are writable by other users, then the file could be modified or replaced by unauthorized users. In this case, sshd will not allow it to be used unless the StrictModes option has been set to no.


Leave a Reply