以下の通り、user=centos であれば、ssh可能です
$ ssh -i ~/.ssh/end0tknr_202008.pem centos@18.183.233.??? Activate the web console with: systemctl enable --now cockpit.socket Last login: Sun Aug 30 07:53:17 2020 from 61.24.125.??? [centos@ip-172-31-6-60 ~]$
ちなみに、os=amazon linux2 のように ec2-user を利用すると、エラーとなります
$ ssh -i ~/.ssh/end0tknr_202008.pem ec2-user@18.183.233.??? ec2-user@18.183.233.???: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
更に、root で ssh接続しようとすると、user=centosの利用を促されます
$ ssh -i ~/.ssh/end0tknr_202008.pem root@18.183.233.??? Please login as the user "centos" rather than the user "root". Connection to 18.183.233.??? closed. $