Why can't I connect to my AWS Cloud9 environment using an Amazon EC2 instance running Amazon Linux 2 as the jump host?

Last updated: 2020-01-31

I tried connecting to my AWS Cloud9 environment using an Amazon Elastic Compute Cloud (Amazon EC2) instance running Amazon Linux 2 as the jump host, but I get a connection error. Why can't I connect?

Short Description

AWS Cloud9 uses the netcat (nc) command to connect to a jump host (also known as a jump server). However, netcat is not installed by default on EC2 instances running Amazon Linux 2.

Resolution

1.    Manually install the netcat package on your EC2 instance running Amazon Linux 2 by using the following command:

yum install nc

2.    Verify that the user account ec2-user has a PATH to the location of the command nc.

Note: You can also use an EC2 instance running the Amazon Linux AMI, which has netcat installed by default.


Did this article help you?

Anything we could improve?


Need more help?