CompTIA Linux+ XK0-006 (V8) Practice Question

After upgrading the OpenSSH client from 6.8p1 to 9.7p1 on a Linux workstation, an administrator attempts to log in to an aging network switch and sees:

$ ssh -vv [email protected]
...
Unable to negotiate with 192.0.2.10 port 22: no matching key exchange method found.
Their offer: diffie-hellman-group1-sha1

The switch firmware cannot be updated at this time, and the administrator must connect only from this workstation. Which client-side change will restore connectivity without modifying the switch or the system-wide SSH server configuration on the Linux host?

  • Add the line KexAlgorithms +diffie-hellman-group1-sha1 to the host entry in ~/.ssh/config and reconnect.

  • Connect with the option -o StrictHostKeyChecking=no to bypass the host-key prompt.

  • Append Ciphers [email protected] to /etc/ssh/sshd_config and restart the sshd service.

  • Use scp instead of ssh to transfer the switch configuration file.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot