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

Connect to bees by IP instead of host names #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abguy
Copy link

@abguy abguy commented Apr 24, 2015

Sometimes hostnames are not resolved.

@@ -253,10 +253,10 @@ def _attack(params):
pem_path = params.get('key_name') and _get_pem_path(params['key_name']) or None
if not os.path.isfile(pem_path):
client.load_system_host_keys()
client.connect(params['instance_name'], username=params['username'])
client.connect(params['instance_ip'], username=params['username'])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would you not want the option to connect to both?

@FliesLikeABrick
Copy link
Contributor

If this change is to be adopted, I think it should be accompanied by a command line option which enables "ssh by IP address". Because:

  • With EC2 supporting IPv4 and IPv6 now, forcing IPv4 would be a bad practice and a regression from the more-expected behavior of SSHing by name
  • This may change behavior for organizations that have instance names configured a certain way, an option would prevent a change to default behavior

The option would probably allow for selection between "SSH by" name, IPv4 address, IPv6 address.

@abguy
Copy link
Author

abguy commented Nov 16, 2017

I think that SSH by instance name is a bad idea. AWS allows to reconfigure internal VPC DNS through Route53. It is better to use IP addresses.

PS.
Too many things were changed since 2015. Let's just close this PR.

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

Successfully merging this pull request may close these issues.

3 participants