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

1 minute read
0

When I try connecting to my AWS Cloud9 environment using an Amazon Elastic Compute Cloud (Amazon EC2) instance, I receive a connection error. The Amazon EC2 instance is running Amazon Linux 2 as the jump host. 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 isn't installed by default on Amazon EC2 instances running Amazon Linux 2 as the jump host.

To connect your AWS Cloud9 environment to a jump server, you must manually install the netcat package on your Amazon EC2 instance.

Resolution

1.    Use the Linux command line interface (CLI) to install the netcat package on your Amazon EC2 instance by running the following nc command:

yum install nc

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


Related information

Creating an SSH environment

Cannot open an environment

Netcat 1.10 (netcat website)

AWS OFFICIAL
AWS OFFICIALUpdated 2 years ago