
¿Qué -i
agrega la etiqueta a un comando como:
ssh -i path-to-pem-file ubuntu@ip-address
Respuesta1
Desde la página de manual:
-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.
Básicamente, le dice al comando SSH que mire el archivo de clave que necesita para la autenticación en el servidor de destino. Si utiliza autenticación de clave y se le proporcionó un certificado, aquí es donde desea especificarlo. Si utiliza autenticación de contraseña normal, ignore esa opción.
Además, en el futuro, será más fácil buscar en Google cosas como esta. Dedicarás menos esfuerzo y obtendrás una respuesta más rápido.
Respuesta2
Desde elpágina de manual
-i archivo_identidad
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.