102-500 Exam QuestionsBrowse all questions from this exam

102-500 Exam - Question 90


FILL BLANK -

Which parameter of the ssh command specifies the location of the private key used for login attempts? (Specify only the option name without any values or parameters.)

Show Answer
Correct Answer:

-i. The parameter of the ssh command that specifies the location of the private key used for login attempts is '-i'. This option allows you to select a file from which the identity (private key) for public key authentication is read.

Discussion

16 comments
Sign in to comment
Vendo
Sep 14, 2020

-i (identity_file) Selects a file from which the identity (private key) for public key authentication is read. The default is ~/.ssh/id_dsa, ~/.ssh/id_ecdsa, ~/.ssh/id_ecdsa_sk, ~/.ssh/id_ed25519, ~/.ssh/id_ed25519_sk and ~/.ssh/id_rsa. Identity files may also be specified on a per-host basis in the configuration file. It is possible to have multiple -i options (and multiple identities specified in configuration files). If no certificates have been explicitly specified by theCertificateFile directive, ssh will also try to load certificate information from the filename obtained by appending -cert.pub to identity filenames.

Thi_86
Sep 3, 2020

I think that correct is "ssh -i"

HotSpotLTE
Sep 4, 2020

Are you sure guys? Because the question is talking about the parameter and not the command or the command's option.

gaber
Mar 6, 2021

so, ssh -i, or identity_file, or -i?

McLaba
May 20, 2021

sh -i ~/.ssh/mykey user@host

drliu1202
Jul 31, 2022

Answer is : -i https://man.openbsd.org/ssh#i

lucaverce
May 19, 2022

From the MAN pages of SSH: -i identity_file Selects a file from which the identity (private key) for public key authentication is read. You can also specify a public key file to use the corresponding private key that is loaded in ssh-agent(1) when the private key file is not present locally. .... So my answer is -i

lucaverce
May 26, 2022

from MAN page for ssh OPTIONS -i identity_file Selects a file from which the identity (private key) for public key authentication is read. You can also specify a public key file to use the corresponding private key that is loaded in ssh-agent(1) when the private key file is not present locally. The default is ~/.ssh/id_rsa, ~/.ssh/id_ecdsa, ....

lollo1234
Oct 15, 2020

The option is "IdentityFile"! Use with ssh -o "IdentityFile=$HOME/.ssh/id_rsa" user@host https://linux.die.net/man/1/ssh

MIU
Nov 28, 2020

(Specify only the option name without any values or parameters.) So, the answer is simply IdentifyFile.

Rini_Giannenzo
Dec 21, 2020

-i commentotroppobrevedaje

Timfdklfajlksdjlakf
Jul 17, 2021

You comment to be a noodle muncher

Lazylinux
Apr 30, 2022

yep -i stands for identity_file ==> full command ssh -i think if i stand for insert to remember easy

yigido
Sep 3, 2020

ssh-keygen -f

yigido
Sep 3, 2020

Sorry, correct answer is ssh -i (identity_file)

Mchoeti
Apr 10, 2023

It is simply -i . Please check the man page [-i identity_file]

valhallaone
Apr 23, 2023

The full command to this would be ssh -i ~/.ssh/key user@host But because the question asks "Which PARAMETER OF THE SSH COMMAND specifies the location of the private key used for login attempts? (Specify ONLY THE OPTION NAME without any values or parameters.)" that makes the correct answer for this question to be simply "-i".

blk_542
Jun 10, 2023

-i, ssh-keygen is not a parameter and it isn't related to key location.

donec
Jun 23, 2024

Answer you need to use is: -i