I am trying to login on ec2 instance server, but I am getting me errors like
Too many authentication failures for ubuntu,
or
Permission Denied (Public key).
when I connect to the server with ssh -i "pem_file" ec2_name@public_ip
When yesterday, I was login in server, it's worked but after exit from server and again trying to login it's giving me errors which is mentions above.
The following issues can prevent a connection to an EC2 Windows instance on a specific port: The service that uses the port isn't running on the instance. Windows Firewall is blocking traffic to the port. A security group is blocking traffic.
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances, and then select your instance. On the Networking tab, make note of the values for VPC ID and Subnet ID. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/ .
What eventually worked for me:
chmod 400 priv_key.pem #or what you named it
ssh -o 'IdentitiesOnly yes' -i priv_key.pem [email protected]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With