ssh の -i の意味は何ですか?

ssh の -i の意味は何ですか?

-i次のようなコマンドにタグは何を追加しますか:

ssh -i path-to-pem-file ubuntu@ip-address

答え1

マンページから:

-i identity_file
             Selects a file from which the identity (private key) for public
             key authentication is read.  The default is ~/.ssh/identity for
             protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
             ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
             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 the
             CertificateFile directive, ssh will also try to load certificate 
             information from the filename obtained by appending -cert.pub to 
             identity filenames.

基本的に、これは SSH コマンドに、宛先サーバーでの認証に必要なキー ファイルを確認するように指示します。キー認証を使用し、証明書が提供されている場合は、ここで指定します。通常のパスワード認証を使用する場合は、そのオプションを無視します。

また、将来的には、このようなことは Google で検索する方が簡単です。労力も少なくなり、回答も早く得られます。

答え2

からマニュアルページ

-i アイデンティティファイル

   Selects a file from which the identity (private key) for public
   key authentication is read.  The default is ~/.ssh/identity for
   protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa,
   ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
   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 the
   CertificateFile directive, ssh will also try to load certificate
   information from the filename obtained by appending -cert.pub to
   identity filenames.

関連情報