![]() I have to admit I'm not the Linux admin I'd like to be. I've tried opening a tunnel to the EC2 instance, then tunneling from there via Robo3T, but that didn't work as well (partially because I don't know which port to connect to on the EC2). I suspect opening the connection in the tunnel is wrong, but I've got no clue how to start it. The SSH tunnel to the EC2 instance has been created successfully (at least it seems so) and it's not showing any errors, but I can't connect to the database via Robo3T (or mongoshell). I can use this SSH connection (or the unaltered AWS SSM connection) to access my DocumentDB via the mongoshell, but now I'm asking myself if it would be possible to open a SSH tunnel to it. That's working as expected and I am able to connect via SSH and copy files from and to the EC2 instance via SCP. Prox圜ommand sh -c "aws ssm start-session -target %h -document-name AWS-StartSSHSession -parameters 'portNumber=%p'" Now I have set up a proxycommand to connect via SSH without having a port opened using SSM in my ~/.ssh/config file. The EC2 Instance is an Amazon Linux 2 AMI. I've set up a EC2 instance (no outgoing routes) I'm powering up when needed to connect via AWS SSM (and I want to keep it that way). The only ports made available to the public are 80 and 443 (80 to re-route to 443) and I want to keep it that way. I've set up my infrastructure in ECS Fargate, connecting to a DocumentDB. I can't wrap my head around forwarding the DocumentDB port while supplying both my EC2 pem file as well as that of the DB (generic RDS pem). I'm not sure if it's possible, but I wanted to give it a try. To set a proxy select T ools -> O ptions then Advanced, Network, S ettings: Once there you want to select M anual proxy configuration and define a SO C KS Host of localhost:9999 with N o Proxy for localhost, 127.0.0. I want to connect to my DocumentDB via an SSH tunnel. I use Chrome as my main browser, and tend to use Firefox for experimental stuff like this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |