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

Allow using private ip for ssh #151

Closed
luisdavim opened this issue Oct 6, 2017 · 6 comments
Closed

Allow using private ip for ssh #151

luisdavim opened this issue Oct 6, 2017 · 6 comments

Comments

@luisdavim
Copy link

for example, this command works:

awless ssh centos@i-0ab502440010ce2ed --through=dev-bastion

but if I try:

awless ssh centos@10.0.0.1 --through=dev-bastion

I get:

[error]   instance '10.0.0.1' not found

though 10.0.0.1 is the private ip for i-0ab502440010ce2ed and that is what it will be used for the connection anyway.

@simcap
Copy link
Contributor

simcap commented Oct 6, 2017

@luisdavim Thanks for spotting it. Fixing that.

simcap added a commit that referenced this issue Oct 6, 2017
@simcap
Copy link
Contributor

simcap commented Oct 6, 2017

Available in master as for now (go get -u ....)

@simcap simcap closed this as completed Oct 6, 2017
@luisdavim
Copy link
Author

Awesome. Thanks.

@varunchandak
Copy link

One more thing I would like to add that if the instance has private IP only, then --private parameter should not be required, and it should resolve that automatically. Correct me if I am wrong ?

@fxaguessy
Copy link
Contributor

That would be indeed a nice improvement. I reopen this issue to track the implementation of this enhancement.

@fxaguessy fxaguessy reopened this Jan 4, 2018
@varunchandak
Copy link

@fxaguessy can we get this too:
image

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

4 participants