Hi in aws i created 2 ec2 instances then i try to take ssh from one ec2 to anoth . . .

manukumar:
Hi in aws i created 2 ec2 instances then i try to take ssh from one ec2 to another
i am getting the below error, i enable password authentication and create ssh key i tried all the things but still not possible

Mohamed Ayman:
Hello @manukumar
Try this command
ssh -i <key> ec2-user@<ec2 ip

manukumar:
@Mohamed Ayman Thanks issue was resolved