1

I have deloyed a jhipster app on aws using jhipster aws. But when I am trying to connect to the EC2 Instance, it's giving following warning :

Warning

You may not be able to connect to this instance as ports 22 may need to be open in order to be accessible. Your current security groups don't have ports 22 open.

Instance is not associated with a key pair This instance is not associated with a key pair. Without a key pair you will need to log into this instance using a valid username and password combination.

Please give some pointers.

rcde0
  • 3,436
  • 2
  • 18
  • 30

2 Answers2

2

You need to open the particular port to access ec2 instance (22 in your case)

Please refer this video.(https://www.youtube.com/watch?v=xYEvbneAhk4) aws configure security group screenshot

Alien
  • 11,017
  • 3
  • 29
  • 45
  • Thanks for the help. Though it did not solve my issue, but helped in removing first warning, after that I followed and got the solution, it helped me : https://stackoverflow.com/questions/4742478/ssh-to-elastic-beanstalk-instance/50188308#50188308 – rcde0 Jun 11 '18 at 13:11
0

I had this problem in Elastic Beanstalk and for Elastic Beanstalk all you have to do is:

1) Go to the Elastic Beanstalk area -> Configuration -> Security .

2) And then add a pre-existing EC2 key pair.

notescrew
  • 3,072
  • 4
  • 21
  • 36
Kyle Corbin Hurst
  • 673
  • 1
  • 5
  • 15