SSH を使用して Amazon AWS インスタンスにログインしようとしています。インスタンスを作成し、そのインスタンスで新しいキーペアを作成しました。その KeyPair を、ssh を試行するディレクトリに配置しました。
私はそうします$ ssh -i myKeyPair.pem ec2-user@ec2-11-111-111-11.compute-1.amazonaws.com
。
次の出力が得られます。
debug1: Trying private key: myKeyPair.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).