LAB WITH ORIGINAL QUESTIONS AND VERIFIED
ANSWERS, PLUS EXPLAINED RATIONALES/EXPERT
VERIFIED FOR GUARANTEED 100% PASS
2026/LATEST UPDATE/INSTANT DOWNLOAD PDF
1. In the WGU D830 lab, what is the primary purpose of using SSH
key authentication with SCP?
A. To compress files during transfer
B. To enable secure, passwordless file transfers by proving
possession of a private key
C. To encrypt the entire hard drive
D. To replace the need for an SSH server
B. To enable secure, passwordless file transfers by proving
possession of a private key
Rationale: SSH key authentication allows SCP to operate without
transmitting a password. The client proves possession of the private
key by signing a challenge, and the server verifies it using the
corresponding public key stored in the authorized_keys file .
2. Which command is used to generate an SSH key pair on the client
machine?
A. ssh-copy-id
B. ssh-keygen
C. ssh-agent
D. scp
B. ssh-keygen
Rationale: The ssh-keygen command generates the public/private key
pair used for SSH key authentication .
1
, 3. Where must the client's public key be placed on the remote server
for key-based authentication to work?
A. In the ~/.ssh/known_hosts file
B. In the ~/.ssh/authorized_keys file
C. In the ~/.ssh/id_rsa file
D. In the /etc/ssh/sshd_config file
B. In the ~/.ssh/authorized_keys file
Rationale: The remote server's authorized_keys file lists the public
keys that are permitted to log in as that user. The client's public key
must be appended to this file .
4. Which SCP option specifies the private key file to use for
authentication?
A. -p
B. -P
C. -i
D. -C
C. -i
Rationale: The -i option selects the identity (private key) file for public
key authentication in SCP .
5. Which command copies the client's public key to the remote server
for passwordless authentication?
A. scp ~/.ssh/id_rsa.pub user@remote:~/.ssh/authorized_keys
B. ssh-copy-id user@remote
C. ssh-add ~/.ssh/id_rsa
D. ssh-keygen -R user@remote
B. ssh-copy-id user@remote
Rationale: The ssh-copy-id script logs into the remote server and
2
,appends the client's public key to the remote user's authorized_keys
file, enabling passwordless authentication .
6. What permission setting should the ~/.ssh directory have on the
remote server?
A. 777
B. 755
C. 700
D. 644
C. 700
Rationale: The ~/.ssh directory should be accessible only by the owner.
Permissions of 700 (owner read/write/execute, no access for group or
others) protect the key files and configuration .
7. What permission setting should the authorized_keys file have on
the remote server?
A. 777
B. 755
C. 600
D. 644
C. 600
Rationale: The authorized_keys file should be readable and writable
only by the owner. Permissions of 600 prevent other users from
reading or modifying the authorized keys .
8. What is the primary advantage of SSH key authentication over
password authentication for SCP transfers?
A. Keys are easier to remember
B. Keys are not vulnerable to brute-force attacks and the private
key is never transmitted
3
, C. Keys do not require any configuration
D. Keys are shorter than passwords
B. Keys are not vulnerable to brute-force attacks and the private
key is never transmitted
Rationale: SSH keys are virtually impossible to brute-force. The
private key never leaves the client; the client proves possession by
signing a challenge. This eliminates the risk of credential theft
through password interception .
9. Which command adds a private key to the SSH agent for
passphrase caching?
A. ssh-copy-id
B. ssh-add
C. ssh-keygen
D. scp
B. ssh-add
Rationale: The ssh-add command loads a private key into the SSH
agent, so the passphrase does not need to be re-entered for each SCP
transfer .
10. Which command starts the SSH agent and sets the necessary
environment variables?
A. ssh-agent start
B. eval $(ssh-agent)
C. ssh-add -l
D. ssh-keygen -a
B. eval $(ssh-agent)
Rationale: The eval $(ssh-agent) command starts the SSH agent and
sets the environment variables needed for the current shell session .
4