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