Score:0

Cannot connect to bastion host in AWS

cn flag

I am following the guide in https://aws-quickstart.s3.amazonaws.com/quickstart-bitnami-wordpress/doc/wordpress-high-availability-by-bitnami-on-the-aws-cloud.pdf to create a WordPress High Availability on AWS.

The creation succeeds. And I can visit the WordPress site and the admin panel. However, when I follow the instructions in section "Option 2. Connect to the cluster through SSH", I find I cannot connect to the Bastion host instance. I always get the error "Connection timed out".

Since I am using SecureCRT, not ssh or PuTTY, so I doubt that there may be some misconfiguration in SecureCRT or it does not work for Amazon EC2 instances. So I try to create a test EC2 instance, and then find I can connect to it with SecureCRT successfully, with the key pair same as that for the Bastion host.

So what I have done wrong? Or what log can I check to solve this issue?

Score:1
id flag
MLu

SSH Timeout usually points to a Firewall or Security Group issue. One way or another your SecureCRT is blocked from accessing the Bastion host on the network level. Make sure that the Security Group associated with the instance has a rule that allows SSH from your external IP address.

alancc avatar
cn flag
Thank you. I find a security group called "Enables SSH Access to Bastion Hosts", then add a rule to allow all IPs, then that works.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.