Exam 102-500 All QuestionsBrowse all questions from this 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.)

    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
Vendo

-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

I think that correct is "ssh -i"

HotSpotLTE

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

drliu1202

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

gaber

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

McLaba

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

lucaverce

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, ....

lucaverce

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

Lazylinux

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

Rini_Giannenzo

-i commentotroppobrevedaje

Timfdklfajlksdjlakf

You comment to be a noodle muncher

MIU

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

lollo1234

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

donec

Answer you need to use is: -i

blk_542

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

valhallaone

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".

Mchoeti

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

yigido

ssh-keygen -f

yigido

Sorry, correct answer is ssh -i (identity_file)