Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Unable to SSH AWS instance #487

Closed
joelchen opened this issue Jan 23, 2017 · 4 comments
Closed

Unable to SSH AWS instance #487

joelchen opened this issue Jan 23, 2017 · 4 comments

Comments

@joelchen
Copy link

Fails to SSH AWS instance on both Mac OSX and Docker Linux container https://github.com/joelchen/docker-streisand:

TASK [genesis-amazon : Wait until the server has finished booting and OpenSSH is accepting connections] ***
fatal: [localhost]: FAILED! => {"changed": false, "elapsed": 600, "failed": true, "msg": "Timeout when waiting for search string OpenSSH in <server IP>:22"}
	to retry, use: --limit @/streisand/playbooks/amazon.retry

PLAY RECAP *********************************************************************
localhost                  : ok=13   changed=7    unreachable=0    failed=1

Running ssh -i <private key> ubuntu@<server IP> returns:

ssh: connect to host <server IP> port 22: Operation timed out

Running again with ./streisand --limit @/streisand/playbooks/amazon.retry on Mac OSX repeats the prompts from step 1 (Which provider are you using?) and fails the same at OpenSSH.

@joelchen
Copy link
Author

Only clue I have got is from ansible/ansible#14237 where the issue is caused by different variable names being used.

@antoineclaval
Copy link
Contributor

I've run into the same issue with similar configuration.

@mjrlee
Copy link
Contributor

mjrlee commented Feb 8, 2017

What's the state of the server in the EC2 web console?

Is it a member of any security groups, and what are the contents of those security groups?

Are you using an IAM role's API keys for the build or your root keys?

@cpu
Copy link
Collaborator

cpu commented May 24, 2017

This issue is pretty stale and there are outstanding questions that the OP hasn't replied to. I'm going to close this issue. Please open a new issue if you still have this problem with the tip of master & a new AWS EC2 instance.

@cpu cpu closed this as completed May 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants