nerdexam
CompTIA

XK0-005 · Question #10451

A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers?…

The correct answer is D. ssh-copy-id F. scp. The commands ssh-copy-id and scp can be used to copy a key file to remote servers. The command ssh-copy-id copies the public key to the authorized_keys file on the remote server, which allows the user to log in without a password. The command scp copies files securely over SSH…

System Management

Question

A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)

Options

  • Awget
  • Bssh-keygen
  • Cssh-keyscan
  • Dssh-copy-id
  • Eftpd
  • Fscp

How the community answered

(63 responses)
  • A
    2% (1)
  • C
    5% (3)
  • D
    92% (58)
  • E
    2% (1)

Explanation

The commands ssh-copy-id and scp can be used to copy a key file to remote servers. The command ssh-copy-id copies the public key to the authorized_keys file on the remote server, which allows the user to log in without a password. The command scp copies files securely over SSH, which can be used to transfer the key file to any location on the remote server.

Topics

#SSH#Key management#File transfer#Linux commands

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice