r/aws•
amdforlive

Why EC2 Instance connect via browser-based SSH connection only show Black Screen and no response ?

eli5

I just set up my first ubuntu vm on EC2 all using default setting, except I add a in-bounding rule to allow my ip address access on all protocol.

I didnt set key pair. Because I dont know how to connect via SSH.

Then, I try to connect the VM via the browser-based SSH connection. It only show Black Screen and no response.

​

Whats wrong with that ?

Posted Apr 20, 2020, 3:14 PM UTC

36
nitrikx•

The SSH browser based feature requires to have the package ec2-instance-connect installed and it does not come by default on the Ubuntu AMIs.

You can try the Amazon Linux 2 AMIs if you're just discovering AWS (the package is already installed).

If you're particularly attached to Ubuntu, you need to follow the following procedure first : https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html

5
amdforliveOP•

Finally got it! thank you so much.

I have sit there and google for an hour but interestingly no one have this kind of issue.

thanks a lot.

2
r2mayo•

Also if your Security Group is locked down to just your IP, it won't work from the AWS browser instance connect.

3
amdforliveOP•

icic thanks, So which IP should I also add to security group ?

2
r2mayo•
2
amdforliveOP•

Thanks

2