Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh using private ip #86

Closed
padilo opened this issue Mar 31, 2017 · 3 comments
Closed

ssh using private ip #86

padilo opened this issue Mar 31, 2017 · 3 comments

Comments

@padilo
Copy link
Contributor

padilo commented Mar 31, 2017

Right now If I'm not wrong it uses public instance ip to connect to instances.

I would like a way to do it using private IPs. If you think if have sense I can try to do it ;)

@fxaguessy
Copy link
Contributor

You want to use awless ssh from an AWS instance, in the same private network as the one you want to SSH in ?

This could be implemented by adding a --private flag in awless sshand take into account this flag in the instanceCredentialsFromGraph function.

@padilo
Copy link
Contributor Author

padilo commented Mar 31, 2017

Right now we use DirectConnect.
I'm not an expert about it, but I think using private IP will be useful for people using a bastion host too.
I'll try to do it then ;)

@cristim
Copy link

cristim commented Mar 31, 2017

The problem is identifying the bastion host that has to be used, in case there are more of them.

Such a bastion host would need to have a public IP, SGs with SSH allowed from the user, and also has to be in a subnet properly connected/routed/allowed to reach the target instance.

This logic can get complex since it would need querying of subnets, VPCs and security groups, but would be definitely cool once implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants