Questions tagged [aws-ec2-instance-connect]

Amazon EC2 Instance Connect provides a secure way to connect to instances using Secure Shell (SSH). You use AWS Identity and Access Management (IAM) policies and principals to control SSH access to instances, removing the need to share and manage SSH keys. All connection requests using EC2 Instance Connect are logged to AWS CloudTrail to enable auditing of connection requests.

See: Connecting to Your Linux Instance Using EC2 Instance Connect

61 questions
0
votes
1 answer

How to fix AWS EC2 Status check showing "Instance reachability check failed"?

Since 3 days the second status check has failed and says "Instance reachability check failed", The first check is a pass. Please guide on how to fix this issue. Few details of the instance are as mentioned below: Instance type: t2.small Platform:…
0
votes
1 answer

error: Someip:port is not a valid port number or address:port pair

This is the first time I am deploying a django application. I created an AWS ec2 ubuntu instance. I followed the steps in this tutorial- https://adeshg7.medium.com/deploy-django-postgresql-on-ec2-using-apache2-from-scratch-42dc8e6682c1 The demo…
0
votes
0 answers

EC2 instance connect is showing (AccessDeniedException) error

While I am connecting to an Amazon-linux-2 instance in which the AWS instance connect was installed by default I am getting the error like this An error occurred (AccessDeniedException) when calling the SendSSHPublicKey operation: User:…
0
votes
1 answer

EC2 Public IPv4 DNS how to disable

I am able to access my website contents from the Public IPv4 DNS of the EC2 instance as well as my domain and this is creating an issue on google with duplicate content. How do I disable the Public IPv4 DNS which looks like…
0
votes
0 answers

AWS EC2 login attempt failed

We have AWS EC2 instance to which we could able to connect successfully last week. After that no password change no setting change and all of a sudden it is saying the login attempt failed. Using same ip address, same username and same password…
0
votes
0 answers

Unable make API call from Github to AWS EC2 machine

I have an Angular app deployed to GitHub (https://santhoshvenkateswaran.github.io/aggrow) And a flask API setup with AWS EC2 Machine. When I try to make a call from my UI to the AWS IP, I get the following error Mixed Content: The page at…
0
votes
0 answers

Connection to ec2 instance closed by remote host

After a day of creating instance trying to access the server is closing the connection automatically. May i know the reason.
0
votes
1 answer

Ec2 Instance on stop and restart the instance cannot be accessed by that url

Recently I stopped my instance for 2 days and I again stated that the status is showing running. However, if I hit that IP in the browser it is not opening. It shows this error:
0
votes
1 answer

AWS IAM policy to restrict access to specific ec2 instances via ec2-instance-connect

I am creating a IAM policy to grant access to third party developers so that they can connect to EC2 instances in private subnet via ec2-instance-connect. The developers should only connect to specific instances via ec2-connect. How I can implement…
0
votes
1 answer

My server is continuously generating below error on /var/log/httpd. any apache experts can help me in this regards?

[Wed Mar 04 06:56:55.957481 2020] [proxy_fcgi:error] [pid 13665:tid 140572492801792] (70008)Partial results are valid but processing is incomplete: [client 172.31.9.136:30328] AH01075: Error dispatching request to : (reading input brigade) [Wed Mar…
Mosin
  • 600
  • 6
  • 18
0
votes
2 answers

EC2 instance with EIP in Public subnet not connecting to Internet

I have a strange problem wherein I am able to connect to an EC2 instance in a public subnet in AWS VPC using RDP and HTTP. However after successfully connecting to the instance through RDP, i am not able to connect to Internet (from the…
0
votes
0 answers

How to update Ruby On Rails app code aws ec2 instance

Any AWS experts there? I was wondering let say if we have rails app deployed on aws ec2 on 2 instances. Now if I connect to app over the ssh and update code (ruby code on rails app, just minor changes in a code) 1 -Do I need anything else there? 2…
Nezir
  • 6,727
  • 12
  • 54
  • 78
0
votes
0 answers

Is it possible to copy public key of a local instance to ec2-instance authorised key section, while ec2-instance spuns up, using playbook

I need to spin up an ec2-instance from local machine and copy the public key of local machine to ec2-instance while the ec2-instance spuns up. Edit As suggested in the comments I have tried to use the authorized_keys module - name: Deploy SSH Key …
-1
votes
1 answer

How to fix the SMPT error in AWS EC2 Grafana

I have configured an EC2 for Grafana. It's working fine. Then I have configured SMTP to get mail alerts. enter code here enabled = true host = smtp.gmail.com:25 user = me@gmail.com # If the password contains # or ; you have to wrap it with triple…
-1
votes
1 answer

IP Ban for specific instance in AWS

MY IP is blocked while trying to access my Instance using SSH and i made some password mistakes multiple times. now I'm always getting "Connection timed out" when trying to connect. But i can still access the other instance but not this one. also…