Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) provides self-service, on-demand, pay-for-what-you-use computing infrastructure resources.
6,604
questions
74
votes
9
answers
115k
views
Cannot SSH: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY [closed]
We have a server on Amazon EC2 running SSH is on a standard (22) port.
I placed my public key at the <username>/.ssh/authorized_keys file.
The fun thing is that yesterday it was working great! ...
73
votes
10
answers
189k
views
xvda1 is 100% full, What is it? how to fix?
I'm running a Linux instance on EC2 (I have MongoDB and node.js installed) and I'm getting this error:
Cannot write: No space left on device
I think I've tracked it down to this file, here is the df ...
71
votes
3
answers
70k
views
Search ec2 instance by its name from aws command line tool
I have an instance named dev-server-03. Now how can I search all dev-server-* instances from command line?
I am using aws cli tool.
71
votes
4
answers
69k
views
What is the "slash" after the IP? [duplicate]
In Amazon EC2, where I set "security groups", It says: Source:
0.0.0.0/0
And then it gives an example of: 192.168.2.0/24
What is "/24"?
I know what port and IP is.
63
votes
4
answers
92k
views
Download SSL certificate from aws certificate manager
I am using aws certificate manager for managing SSL. Recently I purchased a wildcard ssl *.example-private.com Now I need that SSL certificate to deploy on enterprise git instance on aws.
How can i ...
62
votes
5
answers
39k
views
How can I check /dev/xvda1?
On login to EC2 (Ubuntu) instance, I see
*** /dev/xvda1 should be checked for errors ***
I can't fsck /dev/xvda1 because it is mounted, and sudo umount /dev/xvda1 fails because it is in use. lsof ...
62
votes
14
answers
47k
views
How to know if a machine is an EC2 instance
I would like to run some scripts on hosts which are EC2 instances but I don't know how to be sure that the host is really an EC2 instance.
I have made some tests, but this is not sufficient:
Test ...
61
votes
4
answers
46k
views
Multiple EC2 security groups - permissive or restrictive?
What happens when I assign multiple security groups to an instance? Is it permissive in the sense that the traffic is allowed in if any one of the security groups allows it. OR is it restrictive in ...
60
votes
10
answers
56k
views
How to determine AWS security group dependencies?
Amazon EC2 won't let me delete a security group, complaining that the group still has dependencies. How Can I find what those dependencies are?
aws ec2 describe-security-groups doesn't say.
58
votes
5
answers
75k
views
How to delete Instances in Amazon EC2 ? Change Pair Key?
How to remove Instances ? I test some Instances and now I terminate it. So, I want to remove it. I can't find delete or remove action. I just found terminate.
How to change the pair key ? I don't ...
58
votes
2
answers
57k
views
Are EC2 security group changes effective immediately for running instances?
I have an EC2 instance running, and it belongs to a security group. If I add a new allowed connection to that security group through AWS Management Console, should that change be effective immediately?...
57
votes
7
answers
67k
views
How to delete EC2 AMI
I know that the command ec2-create-image instance-id will be creating an image of the ec2 instance, creating snapshots file and registering as an AMI. But what is the equivalent command to delete the ...
53
votes
4
answers
72k
views
What is "freeable memory"?
Amazon RDS has a metric for 'freeable memory'. It appears to go up & down in a sawtooth pattern.
This leads me to believe that it's memory that is being used by MySQL for caching and that when ...
51
votes
5
answers
132k
views
How to install Docker on AWS EC2 instance with AMI (CE/EE Update)
What is the current way of installing Docker on an AWS EC2 instance running the AMI?
There has been an announcement of Docker Enterprise Edition and now I want to know if anything has changed.
Until ...
50
votes
5
answers
49k
views
Can't connect to EC2 instance in VPC (Amazon AWS)
I've taken the following steps:
Created a VPC (with a single public subnet)
Added an EC2 instance to the VPC
Allocated an elastic IP
Associated the elastic IP with the instance
Created a security ...