Questions tagged [amazon-ec2]

Amazon EC2 (Elastic Compute Cloud) is a web service that allows users to rent virtual computing capacity on which they can run their applications. Web service questions are on topic here only if the question is about the operating system or using a PC application hosted there. Otherwise, other sites on the network may be more appropriate

Filter by
Sorted by
Tagged with
131 votes
6 answers
133k views

How do I change my default shell on a AWS instance?

I want to change my shell from the default bash shell to zsh on my Amazon EC2 instances. How do I go about doing it? Thanks!
Shripad Krishna's user avatar
39 votes
6 answers
68k views

How to get Amazon EC2 instance operating system info?

I just setup an EC2 instance running Linux. Is there a way to get the version/distribution of Linux that is running on the instance via the terminal?
David's user avatar
  • 2,287
35 votes
12 answers
153k views

How to install PHPMyAdmin on Linux EC2 instance?

I just finished setting up a default Linux EC2 instance and would like to install PHPMyAdmin. I already have Apache and MySQL installed but cannot seem to install PHPMyAdmin. I tried using sudo apt-...
David's user avatar
  • 2,287
34 votes
2 answers
62k views

What is the difference between Amazon Linux and RedHat Enterprise Linux on AWS EC2?

I am very new to this and I don't even know if I should ask this question here or on Stackoverflow or ServerFault. The Question I wish to set up a EC2 instance on Amazon Web Services. My ...
Gaurav Agarwal's user avatar
33 votes
4 answers
160k views

How do I use my keyfile to sftp transfer data from one server to another

I cant scp, the other server only takes sftp connections. Currently, I am trying to do sftp [email protected]:/files> put -r ~/ -i keyname does not work, just resolves with illegal option -- i....
Jay's user avatar
  • 557
25 votes
3 answers
5k views

Changed the PATH, now I'm getting "command not found" for everything

Amazon Linux Server, connected with SSH: I tried to change the PATH for the apache user by making some changes in /etc/environment (PATH=$PATH:/opt/openoffice4/program) and /etc/sysconfig/httpd (...
Lokomotywa's user avatar
24 votes
2 answers
25k views

unable to create txt record using amazon route 53

I can't add the following TXT record to my Route 53 DNS config: v=msv1 t=whatever Doing so produces the following error: The record set could not be saved because: - The Value field contains ...
neubert's user avatar
  • 7,102
22 votes
6 answers
31k views

Moving EBS snapshots to Glacier

I have hundreds of large EBS snapshots I need to move to Glacier. What's the best way to go about doing this?
Max's user avatar
  • 709
17 votes
5 answers
17k views

how to make salt-minion generate new keys

I am playing around with salt and what my problem is launching instance from Amazon EC2 AMI results minion keys being the same. How do I refresh individual minion to get it's new identity (key)?
James Lin's user avatar
  • 273
17 votes
3 answers
33k views

X11 forwarding from Amazon EC2 AMI

local$> echo $DISPLAY :0.0 local$> ssh -X -i PEMFILE ec2-user@AMAZONEC2_AMI [ec2-user@REMOTE_AMI ~]$ echo $DISPLAY [ec2-user@REMOTE_AMI ~]$ sudo grep X11 /etc/ssh/sshd_config ~/.ssh/...
Humble Debugger's user avatar
15 votes
3 answers
19k views

Can I install EC2 Amazon Linux OS locally on virtual machine?

Can I download and run any Amazon Linux os on my local machine? If yes: Then from where I can download this? And can I get image ready for VirtualBox? If no: What is the equivalent OS that matches ...
riksof-zeeshan's user avatar
14 votes
4 answers
22k views

Why can't I ssh-copy-id to an EC2 instance?

I have a ubuntu Natty instance on EC2, and I can SSH into it by ssh -v -i ec2-keypair ubuntu@[email protected] But I'd like to set up password less sshing. So I tried these ...
Jeremy Smith's user avatar
14 votes
1 answer
17k views

What's a good way to install "build essentials" (all common useful commands) on a blank EC2 Linux server?

I want to get some "build essentials" (like gcc, make, etc.) on an empty micro Linux box. Seems inefficient to spend my time trying to try installing one thing, then realize I need gcc, then realize ...
Dave's user avatar
  • 267
14 votes
1 answer
6k views

How to stop jbd2 to release a device

In an AWS EC2 instance, we have multiple EBS volumes. When I try to detach any of them, the umount command works, but the device can't be detached. # grep -c xvdj /proc/mounts 0 However, lsof ...
Ayose's user avatar
  • 141
13 votes
1 answer
72k views

Setting correct permissions for uploading files

I have a php script that uploads a file to a directory called "uploads". The only way I can get the upload to work is if I do: chmod 777 uploads I know this isn't correct but I don't know what ...
fun_programming's user avatar
12 votes
1 answer
35k views

Where to find log messages in tomcat7 installed on Amazon EC2?

I have installed Tomcat 7 on an Amazon EC2 running Amazon Linux. I have installed a WAR file on tomcat and I am using java.util.logging for logging messages in my code. Now how to access those log ...
Gaurav Agarwal's user avatar
11 votes
5 answers
58k views

How do I copy files into `/var/www` with WinSCP?

When I try to place my web files into /var/www in apache on my ec2 Ubuntu instance it is giving me an error stating that I don't have permission. Permission denied. Error code: 3 Error message from ...
andrew's user avatar
  • 111
11 votes
3 answers
45k views

How to ssh from one ec2 instance to another?

I have created two EC2 instances on AWS. I created a key pair for each of them. I downloaded the .pem private keys and converted them into .ppk format. I can connect to each of my ec2 instances using ...
Stephen Walsh's user avatar
10 votes
2 answers
33k views

getting my domain name to point to my amazon ec2 instance

I'm trying to get my godaddy.com domain name pointed to my Amazon EC2 instance and am having some difficulty. I created a hosted zone for my domain name on route 54 and set the namesevers up as the "...
neubert's user avatar
  • 7,102
10 votes
1 answer
39k views

Amazon EC2 prompt password when sudo

When I log into an ec2 instance via ssh using keypair (logged in as ec2-user user), I am able to execute sudo commands without typing a password. How can I configure ec2 instance to prompt for a ...
Khanh Tran's user avatar
9 votes
1 answer
22k views

How do I check the event-history of a (possibly deleted) ec2-instance?

I was running some scripts on an instance on the AWS free tier that I may I have deleted but I am not sure when I deleted the instance. I have the public DNS of that instance and I'm unable to find ...
vr00n's user avatar
  • 235
9 votes
2 answers
45k views

"Cannot allocate memory" while no process seems to be using up memory

I am not competent on server issues, any help is much appreciated. When try to start a python/django shell on a linux box, I am getting OSError: [Errno 12] Cannot allocate memory. free -m seems to ...
onurmatik's user avatar
  • 193
9 votes
6 answers
27k views

How do I change the resolution of an Amazon EC2 Windows Machine?

(I debated between posting this here, ServerFault, and StackOverFlow. Settled for this. Hopefully it's in the right place.) We run our UI testing suite using Selenium Grid 2 with an Amazon EC2 ...
Joel's user avatar
  • 235
8 votes
6 answers
51k views

Accessing Amazon EC2 in Filezilla SFTP

I need help/guide how I can open my ssh access from a GUI or Filezilla. Here's the scenario my developer just left me with the login info to my Amazon EC2. Now I am finding difficulties in ...
Pennf0lio's user avatar
  • 1,443
8 votes
4 answers
7k views

Lost sudo/su on Amazon EC2 instance

I have an Amazon EC2 instance. I can login just fine, but neither "su" nor "sudo" work now (they worked fine previously): "su" requests a password, but I login using ssh keys, and I don't think ...
user avatar
8 votes
2 answers
8k views

How to setup EC2 spot instances with elastic IP? [closed]

I would like to set up an EC2 spot instance with an elastic IP. Here's the catch: if a spot instance is interrupted and resurrected later, Is the ip reassociated to the new instance? Am I billed for ...
Dan's user avatar
  • 183
8 votes
1 answer
9k views

Can't connect to AWS EC2 instance from internet

I created my first EC2 instance (linux) using Amazon Web Services, but I can't connect on any port from any host. I changed the inbound rules on my security groups to allow connections from any ip 0....
steampowered's user avatar
  • 2,647
8 votes
1 answer
26k views

How can I open listen ports on an Amazon EC2 instance?

I'm using Amazon EC2 micro instance with Ubuntu 11.04 on it (official AMI by Canonical). I have created a new security group for this instance: Inbound: 22 (SSH) 0.0.0.0/0 80 (HTTP) 0.0.0.0/0 ...
bbrodriges's user avatar
7 votes
2 answers
5k views

What actually is Amazon EC2's 'pay per hour' for on demand instances? [closed]

I'm thinking to host my ROR website on Amazon EC2. I wont be needing a S3 as of now. But when I check the their pricing it's like Micro - $0.020 per Hour I don't get this per hour billing.My ...
mrudult's user avatar
  • 334
7 votes
1 answer
9k views

Is listening on a port on the localhost of a server the same as listening on that port of the server's public IP address?

I set up a free Amazon EC2 instance in order to use a Node app outside of my localhost environment. The instance is allocated a public IP address at launch, mine for example being 54.187.31.42. Does ...
user avatar
7 votes
4 answers
15k views

Port 80 not accessible Amazon ec2

I have started a Amazon EC2 instance (Linux Redhat)... And Apache as well. But when i try: http://MyPublicHostName I get no response. I have ensured that my Security Group allows access to port 80....
Jasper's user avatar
  • 171
7 votes
1 answer
5k views

What is the difference between Public DNS and public IP in AWS ec2?

I found that in ec2 there are two things public DNS and public IP ec2-XX-XXX-190-196.ap-southeast-1.compute.amazonaws.com and xx.255.190.196 Both can access through ssh and ping. So what are ...
TheOneTeam's user avatar
  • 5,287
7 votes
4 answers
7k views

How can I get ec2 command run in git-bash?

I installed ec2 command line tools on windows this morning. When I try to run a command ec2-describe-instances in the git bash, I get this output: Exception in thread "main" java.lang....
citizen conn's user avatar
7 votes
2 answers
5k views

Amazon EC2 Instance Continually Loses Connectivity

I am currently running wordpress on an Amazon ec2 instance, which runs fine with no problems most of the time, but occasionally outside connection to the instance shuts down. I can't access it over ...
cderwin's user avatar
  • 183
6 votes
3 answers
4k views

How to stop adding IP from EC2 to known_hosts for ssh?

I start/stop lots of new instances as I'm learning to use Amazon EC2. Every temporary instance is added to the known_hosts file. Is this ever a problem for others who use EC2 a lot? I'd like to tell ...
projectshave's user avatar
6 votes
7 answers
72k views

What can cause a MAC Address to change?

I would like a summary of common scenarios that can cause a MAC address to change? Does hopping on a new network give you a new MAC? Does installing a new network device (e.g. WiFi card) cause a ...
jakc's user avatar
  • 773
6 votes
1 answer
11k views

How to solve 404 Error in AWS apg-get for debian jessie fetch?

I have a Linux AWS machine and i started having this issue a few days ago: Err http://deb.debian.org jessie-updates/main amd64 Packages Err http://deb.debian.org jessie-updates/main amd64 Packages ...
user3930696's user avatar
6 votes
1 answer
9k views

Unable to mount Elastic File System on EC2 (mount.nfs4: Connection timed out)

I am trying to mount an EFS file sytem on an EC2 instance. Here is what I'm doing: Connect to EC2 instance using ssh -i "MyKeyPair.pem" [email protected]. ...
Yankee's user avatar
  • 163
6 votes
4 answers
50k views

VNC : Console does not accept any keyboard/mouse inputs

I have used and configured vnc many a times before but facing this strange issue for the first time. Here are my steps of configuring vnc on Amazon (RHEL 6.2 64-bit, AMI: ami-2fd5441f): Server ...
slayedbylucifer's user avatar
6 votes
1 answer
4k views

How do you route within an Amazon VPC subnet?

I have an Amazon Virtual Private Cloud that looks like this: 10.40.1.1 Internet Gateway 10.40.1.5 My OpenVPN Instance 10.40.1.100 My Windows Box What I want is traffic from the Windows box ...
goertzenator's user avatar
6 votes
1 answer
4k views

Can Windows Server 2019 on EC2 run WSL 2

I want to create a VM on EC2(Microsoft Windows Server 2019 Base - ami-0eaa025a752a23c5b) that can run windows container and linux container at the same time. I know WSL 2 can support docker container ...
Andy Lai's user avatar
  • 161
6 votes
2 answers
4k views

How can I get Wireshark with a GUI on my EC2?

I have an Amazon EC2 machine that I'd like to run Wireshark on, using X forwarding. Unfortunately, the only Wireshark packages found with $ yum search wireshark are: wireshark-devel.x86_64 wireshark....
Dean's user avatar
  • 2,780
5 votes
2 answers
13k views

How to yum update PHP to version 5.4 on Amazon Linux?

I need PHP 5.4 installed in an Amazon Linux instance. Presently we have: root@ip-10-138-1-229 webapps]$ php -version PHP 5.3.29 (cli) (built: Aug 20 2014 16:41:34) Is there a yum package for this? ...
WestCoastProjects's user avatar
5 votes
1 answer
5k views

AWS EC2 Linux headless Firefox issue: Xvfb: undefined symbol: pixman_glyph_cache_create

I have been using AWS EC2 Linux for a while for a headless Firefox/Selenium task. I built it using the instructions from http://itsallabtamil.blogspot.com/2013/02/setting-up-chrome-firefox-ec2-...
ozhogin's user avatar
  • 53
5 votes
2 answers
9k views

yum install for postgres 9.6 rpm on Amazon Linux 2 on EC2 is failing due to dependency

yum install for postgres 9.6 rpm on Amazon Linux 2 on EC2 is failing due to dependency /etc/redhat-release Below is the log sudo yum install https://download.postgresql.org/pub/repos/yum/9.6/redhat/...
Roy's user avatar
  • 51
5 votes
2 answers
14k views

How to point domain name to Amazon EC2 subdirectory

I'm having trouble pointing a domain name to a subdirectory on an Amazon EC2 instance. FYI - I'm not too experienced with DNS or networking ... So jumping right in ... I set up an Amazon EC2 instance ...
Mr. Meeseeks's user avatar
5 votes
1 answer
6k views

Cannot install Nginx on AWS EC2 AMI2 - Topic :topic: is not found

I would like to install Nginx as a reverse proxy on my AWS EC2 (OS: AMI2) instance. When I try to install nginx, I get told that nginx is available in Amazon Linux Extra topics... sudo yum install ...
Jan Kreischer's user avatar
5 votes
2 answers
11k views

How to view contents of an EBS volume attached to an EC2 instance via Terminal?

I've setup an EC2 instance and have 2 EBS volumes attached to it. I would like to view the contents of each volume. How do I view it via the terminal (cd /somePath)? I've already have a valid SSH ...
David's user avatar
  • 2,287
5 votes
1 answer
7k views

How is Amazon Lightsail cheaper than Amazon EC2? [closed]

Okay, I don't really now where to post this question.. It wasn't received well on SO so I am trying here. There is only one apparently abstract upside of using Lightsail, simplicity, or significantly ...
Aakash Verma's user avatar
5 votes
1 answer
7k views

Problems to connect with remote redis-server

I have two Amazon-EC2 instance let's say A and B. B has redis-server installed. I want to access B from A So I am trying A$ redis-cli -h B_ip -p 6379 Could not connect to Redis at B_ip:6379: ...
Avinash's user avatar
  • 193

1
2 3 4 5
14