Help us understand the problem. What is going on with this article?




$ ssh -i  ~/hoge/hoge.pem
The authenticity of host ' (' can't be established.
ECDSA key fingerprint is hoge
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts. Permission denied (publickey).



AMI ユーザー名
Amazon Linux2 または Amazon Linux AMI ec2-user
CentOS AMI centos
Debian AMI admin
Fedora AMI ec2-user または fedora
RHEL AMI ec2-user または root
SUSE AMI ec2-user または root
Ubuntu AMI ubuntu

いつもはAmazon Linuxを使用していたのでユーザー名をec2-userだったが、今回はUbuntu AMIだったのでubuntuに変更したら無事ssh接続できた。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away