一か月ぐらい前に作ったpemファイルを使って、stoppedだったec2サーバをrunnningにしてteraterm上からつなごうとすると、
Connection to ec2-54-244-xxx-xxx.us-east-1.compute.amazonaws.com closed.
となってしまいました。
centosなので、rootユーザで試しています。ec2-userでも試してみましたが、やはりだめなようです。
お知恵をお借りできますでしょうか。
【やってみたこと】
以前ダウンロードしたpemファイルを/homeディレクトリに置いて、
ssh -i "ec2hogehoge.pem" ec2-54-244-xxx-xxx.us-east-1.compute.amazonaws.com
~/.ssh上にpemファイルを置いて試してみましたが、やはりNGでした。
べつのpemファイルを作って落として使うと、Permission denied(public key)となってしまいました。
[root@localhost home]# ssh -i ec2hogehoge.pem ec2-54-244-xxx-xxx.us-east-1.compute.amazonaws.com
Please login as the user "ec2-user" rather than the user "root".
Connection to ec2-54-244-xxx-xxx.us-east-1.compute.amazonaws.com closed.
回答2件
あなたの回答
tips
プレビュー