我正在使用以下步骤:
$ ssh -i "z2pSandBox.pem" ubuntu@ec2-13-233-53-125.ap-south-1.compute.amazonaws.com
The authenticity of host 'ec2-13-233-53-125.ap-south-1.compute.amazonaws.com (13.233.53.125)' can't be established.
ECDSA key fingerprint is SHA256:vcNjY+sDkCLxtoAPwJXUqOqZnYWxm+fzoRC7uyC+D6s.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-13-233-53-125.ap-south-1.compute.amazonaws.com,13.233.53.125' (ECDSA) to the list of known hosts.
ubuntu@ec2-13-233-53-125.ap-south-1.compute.amazonaws.com: Permission denied (publickey).