Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic Compute Cloud (EC2) asks password when trying to ssh into the instance #1518

Open
mayurm16 opened this issue Oct 11, 2024 · 0 comments

Comments

@mayurm16
Copy link

mayurm16 commented Oct 11, 2024

Followed the steps in docs
created a key pair created a security group in with ingress rule on port 8080
{
"SecurityGroups": [
{
"Description": "test",
"GroupName": "default",
"IpPermissions": [
{
"FromPort": 8080,
"IpProtocol": "tcp",
"IpRanges": [
{
"CidrIp": "0.0.0.0/0"
}
],
"Ipv6Ranges": [],
"PrefixListIds": [],
"ToPort": 8080,
"UserIdGroupPairs": []
},
{
"FromPort": 22,
"IpProtocol": "tcp",
"IpRanges": [
{
"CidrIp": "0.0.0.0/0"
}
],
"Ipv6Ranges": [],
"PrefixListIds": [],
"ToPort": 22,
"UserIdGroupPairs": []
}
],
"OwnerId": "000000000000",
"GroupId": "sg-d8d9aa17141000527",
"IpPermissionsEgress": [
{
"IpProtocol": "-1",
"IpRanges": [
{
"CidrIp": "0.0.0.0/0"
}
],
"Ipv6Ranges": [],
"PrefixListIds": [],
"UserIdGroupPairs": []
}
],
"Tags": [],
"VpcId": "vpc-07629ff7"
}
]
}

ran instances with both ubuntu and amazon linux 2023
when trying to ssh into the ssh instance it asks for password
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant