Post

SSH to AWS instances - use SSH tunnel 30111

How to SSH into an AWS EC2 instance and open a local port tunnel for port 30111.

How to SSH and open a tunnel for port 30111.

The following command connects to an EC2 instance while establishing a local port forward. This maps local port 30111 to port 30111 on the remote host, which is useful for accessing services like NodePort-exposed Kubernetes workloads.

1
2
3
4
5
ssh \
-o "IdentitiesOnly yes" \
-i  ~/.ssh/key.pem \
ec2-user@1.2.3.4 \
-L30111:127.0.0.1:30111
This post is licensed under CC BY 4.0 by the author.