Amazon Elastic Compute Cloud (EC2), which allows users to rent virtual computer systems, is part of Amazon Web Services.
Questions tagged [amazon-ec2]
375 questions
51
votes
3 answers
Convert Amazon .pem key to Putty .ppk key Linux
I have generated and downloaded a private .pem key from AWS. However, to use Putty in order to connect to the virtual machine, I must have that key in .ppk format. The process of conversion is detailed in roughly 20 lines…
Flame_Phoenix
- 859
- 4
- 9
- 13
42
votes
15 answers
VSFTPD, 553 Could not create file. - permissions?
I've set up vsftpd on Amazon EC2 with the Amazon Linux AMI. I created a user and can now successfully connect via ftp. However, if I try to upload something I get the error message
553 Could not create file.
I assume this has to do with…
user1995
34
votes
2 answers
BUG: soft lockup - CPU# stuck for x seconds
I've seen a few bug reports and questions (on stackexchange and elsewhere) regarding a nagging "BUG: soft lockup - CPU# stuck for s!". So far, I haven't found any clue as to what to do or try (rather, the clues I've found and followed…
Pierre D
- 645
- 1
- 5
- 14
32
votes
5 answers
How can I block a range of IP addresses with an Amazon EC2 instance?
I know a certain range of IP addresses are causing problem with my server, 172.64.*.* what is the best way to block access to my Amazon EC2 instance? Is there a way to do this using security groups or is it better to do it with the firewall on the…
cwd
- 44,479
- 71
- 146
- 167
25
votes
5 answers
Turn off --skip-grant-tables in MySQL
I'm pretty new to using Linux but am setting up my MySQL databases on an Amazon ec2 instance. I followed some directions I found about resetting the user login pass by using the --skip-grant-tables option of MySQL. Now I am trying to add a user and…
user718229
- 365
- 1
- 3
- 6
21
votes
4 answers
Is there a way to get the Public DNS address of an instance?
I have a project wherein I need to update configuration files each time an EC2 instance is booted with the Public DNS address of the current instance. I'll be using Perl or Sed for this, so that's not really the question, but the real question is:…
Naftuli Kay
- 38,686
- 85
- 220
- 311
12
votes
2 answers
What overwrites /etc/resolv.conf roughly every hour?
I'm trying to add a search line to /etc/resolv.conf
I've added it directly, as an append command in /etc/dhcp/dhclient.conf and as a nameservers block in /etc/netplan/50-cloud-init.yaml.
After roughly an hour, the dhcp and netplan files are intact,…
dspeyer
- 303
- 3
- 7
12
votes
1 answer
Need to ssh from one Amazon EC2 server into another one
Basically I need to be able to connect from one EC2 instance to another using SSH. I run the command ssh -i path-to-pem-file ec2-user@dns-address-of-ec2-instance, and it times out.
I set my security group to allow SSH inbound from the public IP…
Pompey
- 223
- 1
- 2
- 7
11
votes
4 answers
Multiple commands during an SSH inside an SSH session
I have a local machine which is supposed to make an SSH session to a remote master machine and then another inner SSH session from the master to each of some remote slaves, and then execute 2 commands i.e. to delete a specific directory and recreate…
mgus
- 259
- 1
- 4
- 9
11
votes
1 answer
How is an Elastic IP address different from a static IP address?
More of a Amazon Web Services EC2 question, hopefully not too off topic. I have a vanilla Ubuntu instance with them, and powered it off. On reboot couldn't ssh to the FQDN because the external IP address had changed.
It costs extra for a "static",…
Thufir
- 1,810
- 6
- 33
- 60
11
votes
2 answers
What is the official Gentoo AMI?
I would like to use Gentoo on Amazon EC2.
What are the right AMI for me to use?
I won't be running X unless necessary. I guess I need a server variant, if there is such a thing.
Nickolai Leschov
- 1,101
- 5
- 13
- 26
10
votes
2 answers
How to set environment variables permanently in Amazon Linux 2
I have experimented with many approaches to setting permanent environment variables EC2 instances running Amazon Linux 2, but none of the approaches are persistent across users and across login sessions.
What specific syntax and process will…
CodeMed
- 5,079
- 45
- 100
- 147
9
votes
2 answers
Why am I getting 400 Bad Request?
I have just finished setting up a server on AWS ECS.
All of the configurations are identical to a different server I have, except for Apache version (from 2.2 to 2.4) and PHP version (from 5.3 to 5.6).
I have modified my index.php file to only…
Sérgio Paulino
- 91
- 1
- 1
- 4
9
votes
3 answers
How to get GNU parallel on Amazon Linux?
Preferably without having to compile it from source. I tried adding repositories I found on Google: CentOS 6 and CentOS 5, but both give me:
[ec2-user@ip-10-0-1-202 yum.repos.d]$ sudo yum install parallel -y
Loaded plugins: priorities, update-motd,…
Matt Chambers
- 241
- 1
- 2
- 5
8
votes
3 answers
How to fix infinite bash loop (bashrc + bash_profile) when ssh-ing into an ec2 server?
I mistakenly have source .bash_profile in the bashrc file and vice versa. Now when I tried to ssh into the machine (ec2), it will stuck at loading bash and get connection closed in a second. Is there a way I could fix it? Could I mount the disk to…
John M.
- 181
- 4