Search code examples
amazon-web-servicesamazon-ec2passphrase

how to connect aws ec2 using Xshell 6


i have stuck at Xshell6 where i am trying to connect Aws EC2 Ubuntu instance. I have upload .pem key in User key Manager, prompt new session, putted Name, Hostname, Protocol as 22. In authentication, using public key as method, username as ec2-user and picking public key (.pem file)

Still it is asking passphrase. Can someone help how to connect Amazon EC2 instance by using passphrase ?


Solution

  • Username for AWS Ubuntu instance is ubuntu, you are using username as ec2-user which is for the Amazon Linux AMI.

    So, put the user as ubuntu and you'll get logged in.