ec2: Denied ssh permission / could not resolve hostname - amazon-ec2

I recently launched two instances, and can't get into one of them. They're in the same security group w/ same key.
Below are the logs and attempts for each server.
Any tips / suggestions would be appreciated!

Related

Admin Credentials for EC2 Instance Don't Work After Joining Windows Active Directory Domain

The Problem:
I'm unable to connect to my Windows EC2 instance using the admin credentials set at launch after manually joining it to my Windows active directory domain.
The Error:
What I've tried:
I've tried researching the issue but the only solutions I see are for EC2 instances that are exposed to the internet. We do not want to expose our EC2 instances to the internet.
I've tried using the Windows password associated with the EC2 instance but it's the same as the admin credentials set at default and I get the same error.
Any help on how to resolve this would be greatly appreciated, thanks!

Permission denied for SSH aws ec2 centos instance

So until now I have setup everything for deploying rails project to my ec2 centos instance.
while doing some stuff I did the following changes in
etc/ssh/sshd_config
PubkeyAuthentication yes
PasswordAuthentication yes
#PubkeyAuthentication yes
#PasswordAuthentication yes
and unfortunately at same time logged out from the server.
and this is the moment when I realized how stupid I am.
while attempting to ssh into server, it says
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
anyone please advise any other possible way to solve this problem.
also I hear about following stuff.
stopping the ec2 instance
detach its volume
attach it to new instance (created in the same zone)
do correct the stupidity
attach the volume again to original instance
But Unluckily I have limited permissions to my account at aws consloe right now.

Oracle installation failed on AWS redhat EC2 instance

I'm trying to install oracle on AWS redhat instance. Follow the steps given on this url: http://www.davidghedini.com/pg/entry/install_oracle_11g_xe_on And when I run config command as follows
/etc/init.d/oracle-xe configure
It gives following error.
Database Configuration failed. Look into
/u01/app/oracle/product/11.2.0/xe/config/log for details
When I check the log files it shows following errors.
ORA-01034: ORACLE not available Process ID: 0 Session ID: 0 Serial
number: 0
It seems specific issue on AWS cloud instance.
Is it because of swap memory?
Or is it because of port issue?
I'm using micro instance on it.
How can I get through?
this might be an EC2 security group issue and outbound access to the network on some port being used by the installer (license check, maybe?).
if your EC2 instance is very tightly locked down, you could test if it's a security group issue by adding a new Outbound security group rule to allow all TCP traffic out to anywhere on the internet (0.0.0.0/0)
for example, the install might be trying to hit a remote licensing server endpoint via HTTP or HTTPS but your security group doesn't allow that traffic out.
perhaps there's a 'verbose' flag that you can run the installer with that can give you more info about what it's failing on? HTH

Not able to connect to EC2 instance after changing the root permission to 7777

I set the permission of the root folder to 7777. From that point, I was not able to connect to it using putty/ssh by making use of the .ppk/.pem file. Previously, I was able to connect. But after this particular action, I am not able to connect.
Can someone tell me how to solve of this issue?
Here is an example of screw up your linux EC2 and remount it from another instance to fix it.
https://aws.amazon.com/articles/5213606968661598
Why toy with the sticky bit?

Amazon EC2 Instance connectivity

I have created an ec2 instance and followed all steps according to AWS documentation, But I am unable to connect to database from the php files in html folder. Below is the error
Warning: mysqli_connect(): (HY000/1130): Host
'ip-172-31-28-115.us-west-2.compute.internal' is not allowed to
connect to this MySQL server in /var/www/html/test/test.php on line 11
Unable to connect to MySQL
The Php files are not getting connected to the database that is created on instance.
Note: I also tried creating new user and granted privileges to the new user but no luck!
It would be great if you can assist us through problem, since we have already spent lot of time experimenting on this.
Things to check for MySQL connection:
--/etc/my.cnf to ensure that listening on the right port(s) ip(s). 3306 default.
--Open port 3306 in AWS to ensure that client can access
--Grant privs on database to user that is connecting.
--Examine mysql logs and apache error logs for errors.
can you try running this? I think it has to do with permissions.
GRANT ALL PRIVILEGES ON . TO 'root'#'%';
FLUSH PRIVILEGES;

Resources