exam questions

Exam 202-450 All Questions

View all questions & answers for the 202-450 exam

Exam 202-450 topic 1 question 11 discussion

Actual exam question from LPI's 202-450
Question #: 11
Topic #: 1
[All 202-450 Questions]

The content of which local file has to be transmitted to a remote SSH server in order to be able to log into the remote server using SSH keys?

  • A. ~/.ssh/authorized_keys
  • B. ~/.ssh/config
  • C. ~/.ssh/id_rsa.pub
  • D. ~/.ssh/id_rsa
  • E. ~./ssh/known_hosts
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
lanc
Highly Voted 4 years, 6 months ago
the answer should be C ~/.ssh/id_rsa.pub
upvoted 31 times
...
TheBroker
Highly Voted 4 years, 5 months ago
I agree with Ianc. The answer should be C. The authorized_keys contains the list of public keys that are authorized to access. The "id_rsa.pub" contains the public key of the client and it's append in the remote server into the authorized_keys file.
upvoted 11 times
...
fjcsanchez
Most Recent 1 month, 2 weeks ago
Correct answer C: Copy the id_rsa.pub file to the remote server. The key contents must be copied into the ∼/.ssh/authorized_keys file for your user account on the remote server. You can do that using the cat command: $ cat id_rsa.pub >> ∼/.ssh/authorized_keys
upvoted 1 times
...
Qualcuno
8 months ago
Correct answer is C.
upvoted 1 times
...
jorgevisentini
10 months, 2 weeks ago
The correct answer is C ssh-copy-id username@remote_host The utility will connect to the account on the remote host using the password you provided. It will then copy the contents of your ~/.ssh/id_rsa.pub key into a file in the remote account’s home ~/.ssh directory called authorized_keys. https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server
upvoted 1 times
...
jchavarria12
11 months ago
Selected Answer: C
C is the right one
upvoted 2 times
...
MaikyCR28
1 year, 3 months ago
To log into a remote SSH server using SSH keys, you need to transmit the content of your public key to the remote server. The public key is usually stored in a file named ~/.ssh/id_rsa.pub (option C). So, the correct answer is: C. ~/.ssh/id_rsa.pub This public key file needs to be added to the ~/.ssh/authorized_keys file on the remote server to grant you access using SSH keys.
upvoted 3 times
...
intre
1 year, 3 months ago
Selected Answer: A
The question is referring to the CONTENT of the file that is LOCAL ON THE SERVER. So, the client needs to trasmit data that match the content of authorized_keys on the server. The question is really ambigous though.
upvoted 1 times
Qualcuno
8 months ago
I don't interpret the question that way: local is the machine that is connecting (from) the server is the machine that the user is connecting to. The file ~/.ssh/authorized_keys doesn't need to exist on the client (local) machine. it needs to exist on the server and contain the public keys that are authorized to access said server. So the answer should be C.
upvoted 1 times
...
...
lbellic
1 year, 9 months ago
Selected Answer: C
C is the answer . The question is referring to the file you need to copy in a server for authenticate by ssh-key pair handshake.
upvoted 1 times
...
serlan
2 years ago
Selected Answer: C
I think its C
upvoted 1 times
...
Clvd
2 years, 1 month ago
Selected Answer: C
C 100%
upvoted 2 times
...
remiset
2 years, 1 month ago
~/.ssh/id_rsa.pub is the file to be copy. The question ask about the CONTENT of local file. If you copy the authorized_keys, you are able to use a remote server, because the authorized_keys has the pub key. Then, the correct answer is A
upvoted 2 times
Qualcuno
8 months ago
I agree with dragonsoul: if you copy the file "authorized_keys" to the server, then the server will accept only connections from clients which have one of the keys listed there. They are not guaranteed to be the ones you want, since the client's "authorized_keys" file, if it exists at all, may contain keys that have nothing to do with the server.
upvoted 1 times
...
dragonsoul
1 year, 9 months ago
the content of ~/.ssh/id_rsa.pub file need to be copy to remote servers authorized_keys file. The local machine doesn't even need to have authorized_keys file. The answer is C
upvoted 1 times
...
...
mira_
2 years, 1 month ago
Selected Answer: A
Read the question as _which file should be copied?_ and think _source and destion file_ remain the same.
upvoted 1 times
Qualcuno
8 months ago
The file "authorized_keys" doesn't need to be copied. It should remain local on the server. So the answer is C
upvoted 1 times
...
...
serlan
2 years, 2 months ago
Selected Answer: C
The answer should be C.
upvoted 1 times
...
K1lroy
2 years, 5 months ago
Selected Answer: C
The question is regarding a LOCAL file that should be placed on remote server. ~/.ssh/id_rsa.pub is the LOCAL file that will "become" a authorized_keys on the remote
upvoted 1 times
...
EMordenti
2 years, 6 months ago
I think that "A" "~/.ssh/authorised_keys" is a file used on the SSH server side to store the SSH public key of a trusted user. This is the correct answer. "~/.ssh/config" is the file used by the SSH client to configure SSH. "~/.ssh/id_rsa.pub" is the file containing the user's SSH public key. "~/.ssh/id_rsa" is the file containing the user's SSH private key. "~. /ssh/known_hosts" is the file that stores the public key of the trusted SSH server (the public key of the SSH server itself is stored in "/etc/ssh/ssh_host_TYPE_key.pub", where "TYPE" is the encryption method).
upvoted 1 times
EMordenti
2 years, 6 months ago
Sorry. The answer is C Looking at the link to the explanation it says the following: "To authenticate using SSH keys, a user must have an SSH key pair on their local computer. On the remote server, the public key must be copied to a file within the user’s home directory at ~/.ssh/authorized_keys. This file contains a list of public keys, one-per-line, that are authorized to log into this account". The question refers to the local file, not the server file. The local file is id_rsa.pub, the server file is authorized_keys. So, the answer should be "C"
upvoted 3 times
...
...
schif
2 years, 7 months ago
Selected Answer: D
authorized_keys = public keys that are authorized to access. id_rsa.pub contains = public key of the client that should be added into the authorized_keys file of remote server.
upvoted 1 times
schif
2 years, 7 months ago
Can you correct to C answer ?
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...