Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Sign in
Your Saved List Become a Channel Partner Sell in AWS Marketplace Amazon Web Services Home Help

Could not log into EC2 instance in private subnet

  • By Enthusiastic but Sorry Guacamole Bastion Host Trail user
  • on 01/08/2021

I wrote a simple user-data start-up script to

1) Set "PasswordAuthentication yes" (this seemed to work)
2) Set password for ec2-user. This password followed standard EC2 instance password policy.
3) These commands were issued as su
4) To be sure that my script was 100% correct, I ran similar commands to change/set the password and set "PasswordAuthentication yes" on my stand-alone Linux (Ubuntu) machine. Both the commands worked perfectly as expected

With my (small) instance charges running high for test/trail purpose, having made many attempts with many permutations with no visibility into start-up (error/failure) log and with my Guacamole Bastion's trail period coming to an end within a day, I though that it would be best to cancel this subscription.


There are no comments to display