aws / aws-ec2-instance-connect-cli

This is an all-in-one client for EC2 Instance Connect that handles key brokerage and establishing connection to EC2 Instances through an interface near-identical to standard system ssh, sftp, and other utilities.
Apache License 2.0
160 stars 42 forks source link

How to use mssh behind a proxy? #15

Closed t0ny-peng closed 4 years ago

t0ny-peng commented 4 years ago

I need to connect to an AWS instance, but the Internet speed is very slow from my service provide. However, I can find a proxy which is fast from both my home and the AWS instance. Is there anyway to connect through the socks5 proxy?

Thanks

CptTZ commented 4 years ago

mssh will parse and then pass switches to underlying ssh client, so invoking mssh ec2-user@i-1234567890abcd -v will cause ssh client to print debugging messages.

That said, you could utilize standard ssh switches (e.g. -o ProxyCommand='xxx') to let mssh instruct ssh client connecting using SOCKS 5 proxies.

CptTZ commented 4 years ago

Closing as no response