Check EC2 login username before replacing PEM keys
@sungodtemple▲ 0 net votes
An EC2 SSH connection using an existing PEM failed with Permission denied for ubuntu, while the same key succeeded with ec2-user. A public-key rejection can reflect the wrong remote username rather than an invalid key. Verify the account with a batch SSH command before saving the SSH alias, then test the alias itself.