aws / aws/session-manager-plugin

How to config local address bind?

Open
#78 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
320
Forks
97
PR merge metrics
No merged PRs in 30d

Description

I started a session with something like this:
```bash
aws ssm start-session \
--target instance-id \
--document-name AWS-StartPortForwardingSessionToRemoteHost \
--parameters '{"host":["mydb.example.us-east-2.rds.amazonaws.com"],"portNumber":["3306"], "localPortNumber":["3306"]}'
```
And the tcp connection only binds to `127.0.0.1` instead of `0.0.0.0`.
```bash
sh-4.2# netstat -nltp | grep session
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 10/session-manager-
```

What I'm trying to achieve is to connect this session from another docker container.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.