Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...

0
votes
0answers
21 views

Django Application Killed unexpectedly in AWS EC2 Instance

I have a Django Project running over AWS EC2 Instance. I am using default Django server to run the application. To make the server running in background I have used screen command as: To open screen: ...
0
votes
0answers
26 views

Setup of AWS server setup for Data Science Project [closed]

I took AWS account. I am doing academic data science project, which is 6 months long. it may contain dataset of nearly 7-8 lakh data points (it is not time series data). The technique is not decided ...
0
votes
0answers
52 views

How to bypass closed ports in local network to play games

tl;dr: ports to play games blocked on local network, want to bypass them and play again I live in a uni dorm with a pretty good internet connection (1 gbps), the only thing is that the only open ...
0
votes
0answers
8 views

Is it possible to install sqlsrv on amazon linux with php 5.6?

The official Microsoft tutorial links to the repo with sqlsrv versions that are for php 7.0 and up. I've read about the "mssql" with freetds as an alternative, but, from what I understand, its a ...
0
votes
1answer
29 views

Installing mod_php for Apache after installing Remi repo version of PHP 5.6

I followed this guide on how to install PHP 5.6 from the Remi repository on my Amazon Linux 2 instance. Now I need to connect that installation, which was placed in /opt/remi/php56/, to already ...
1
vote
1answer
23 views

yum install php dependency errors

I'm trying to install php 5.4 or 5.6 on an Amazon Linux 2 server using this command: yum install php54 This is the output: Loaded plugins: extras_suggestions, langpacks, priorities, update-motd ...
2
votes
1answer
28 views

AWS EC2 FTP Failed to Retrieve Directory Listing

I know this question has been asked to death (1, 2, 3, 4) but I must be missing something here that I just can't get it working. The FTP login is successful but fails at the directory listing ...
0
votes
0answers
27 views

Low cpu utilization and max db connection

my system have 1 EC2 instance and 1 RDS instance to run a Wordpress website, yesterday the system became not responding, i found out that RDS max connection was reached, but traffic to the website ...
0
votes
0answers
22 views

Ec2 Instance Root-Volume with market place codes went to Read-only mode

We have an EC2 instance in the North Virginia Region in which the root volume went to read only mode all of a sudden. The root volume(XFS fs) has market place codes for the centos ami. I have tried ...
0
votes
0answers
8 views

AWS EC2 instance connection timedout, two instances under same security group, one connect other one dont

Hi could anyone please help, i am running two Ec2 instances under same security group, both were running ok, i just installed jenkins, docker on one instance and ran command ufw allow 8080 in one ...
0
votes
1answer
22 views

How do I do an HTTP POST to a server living in an Amazon ec2 instance over ssh?

I have a server listening on http://0.0.0.0:8000, however this is living in an Amazon instance. How can I make an HTTP POST request from an external computer (using curl)? That is, I would like to ...
0
votes
0answers
25 views

Cyberoam Installation - Cannot Reach server Error

I have downloaded the Cyberoam tar file and have extracted it using tar command in the location /home/ec2-user which created a directory "CyberoamLinuxClient"inside which there were two files "...
0
votes
1answer
51 views

How to connect AWS ec2 Windows instance in Putty?

I have created a AWS Windows Ec2 instance, I can able to connect to the remote windows machine by using .rdb file, everything works fine. Now I need to connect a windows server by using putty. Let me ...
0
votes
0answers
16 views

Connection issue with EC2 instance using Putty

I was able to connect to Amazon Linux AMI (EC2-Instance) with private key and username ec2-user. but, later I tried to connect to the same instance using same private key and username. it doesn't ...
0
votes
1answer
17 views

Return to ec2-user from a custom user

When creating an ec2 instance I use a bootstrap script. On the instance I install and configure an nginx web server. For security reasons, I need to create a new user (www-data). The www-data user ...
0
votes
1answer
25 views

How to create bootable image of the entire OS for creating new EC2 instance?

I have a Linux OS installed on my local desktop. Is it possible to create a disk image of the entire OS (including all installed software and libraries and user files) and use it to create Amazon an ...
0
votes
0answers
226 views

Putty closes by immediately after authentication, Cygwin-SSH on the server

I have installed OpenSSH with CYGWIN on Windows Server 2012 R2 server on Amazon EC - I wanted to create my SSH instead of creating instances in the admin dashboard. My SFTP connection with the ...
0
votes
1answer
40 views

Directories missing when connecting to EC2 via FTP client (Transmit)

I successfully connected to my EC2 instance via Transmit (SFTP protocol, ec2-user and pem key). However, while I do have access to the instance after logging in I cannot see nor access any directories ...
0
votes
1answer
51 views

Sudden ssh connection loss on Amazon Linux

Periodically the ssh connection with amazon linux gets stuck and I can not connect anymore. Having to restart the instance ec2 for the connection to return to normal. This is not an idle connection. ...
0
votes
1answer
93 views

sudo python vs python

I have an instance in EC2 running Linux. I am trying to use the AWS Python DAX Client. The Dax Client is operating at the TCP level. I am running one of their example sample code https://github.com/...
0
votes
0answers
89 views

Architecture for Video Rending using FFMPEG on ECS vs Lambda

I have written an AWS lambda function to use ffmpeg and render a image, and an audio clip into a mp4 video. That works, but I've been running into limitations of Lambda even with max memory and ...
1
vote
1answer
72 views

When does ec2 switch between public DNS and public IP?

I have an application using Django, in Django config there is a list of ALLOWED_HOSTS. The application was working fine with the IP xxx.xxx.xxx.xxx in the ALLOWED_HOSTS list. It then threw the ...
0
votes
1answer
40 views

Why would a command line program need user input when it's not specified in the source code

Why would a program that is run from the command line wait for user input (pressing Enter) if it wasn't programmed to do so? I was using an AWS EC2 instance to run a computationally intensive program ...
0
votes
2answers
401 views

console-setup causes apt-get update to hang

I want to automatically install apache2 on my EC2 instance during first load. I am using the base Ubuntu 16.04 LTS image: ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20180522 (ami-...
0
votes
0answers
39 views

How could I list all users with admin priviledges on CentOS?

I did the following commands: sudoers users list: for USER in `cut -d: -f1 /etc/passwd`; do sudo -U $USER -l; done | egrep -A 1 'may run' users on root group: getent passwd | grep -ve 'nologin' ...
0
votes
1answer
62 views

Extracting system info in one go from ec2-instances

I have almost 150 ec2-instances in an account. I want to extract some system info from each instance. I am aware that I can individually login into each system and get the information using the ...
0
votes
0answers
156 views

unable to connect to AWS EC2 server from putty from work place

Hi I'm trying to connect to AWS EC2 instance using putty by giving authenticate PPK file. getting an error unable to connect to server name host not found, i'm trying to connect from work place, is it ...
1
vote
0answers
258 views

AWS - Cannot ping/ssh my machine from AWS EC2 instance

I have created an AWS T2 instance. I created security groups to allow all traffic on all ports only from my local machine's IP. So when I try to ssh from my dev-machine with the pem file (ssh -i ...
0
votes
1answer
30 views

EBS - Volumes Usage is higher than what i actually see

I have an Amazon Free Tier account It's showing that i am using 25.75 GB, I only have a single EC2 instance running, what is this "EBS - Volume" I have a 30GB disc attached to this instance and as ...
0
votes
1answer
576 views

How do I keep 2 EFS instances in sync across regions

My company has an application running with multiple EC2 instances sharing 1 EFS instance that holds our application's files in the US East region, however our application is used nationally and our ...
0
votes
0answers
91 views

How set NTL parameters in putty ssh client?

AWS glue development endpoint show the following cmd line for shh connetction: ssh -i <private-key.pem> -NTL 9007:000.000.000.0:9007 glue@someHOst.us-west-2.compute.amazonaws.com What is -NTL ...
-1
votes
1answer
67 views

How do I get my Amazon EC2 instance to allocate more memory? [closed]

I am working on a deep learning Neural Network project using NumPy. My laptop, which has 4 GB of RAM, has no problem preprocessing the data. However, that same preprocessing step causes a MemoryError ...
1
vote
1answer
24 views

Locale wrongly configured [duplicate]

I have just launched an EC2 machine, in the frankfurt region. The locale is corrupted: ubuntu@myhost:~$ locale locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 ...
0
votes
1answer
61 views

Unable to SSH to my local computer from a remote EC2 instance

I'm able to connect to my EC2 instance from my local computer, but would like to access files on my computer from EC2. I have already generated a key pair on EC2 and added the public key to my ...
0
votes
0answers
18 views

Amazon Linux to Ubuntu 16 users / groups / data migration

Is there a way to migrate all my linux users/groups and files with their permissions from a AWS Amazon Linux instance to a AWS Ubuntu 16 instance? __| __|_ ) _| ( / Amazon Linux AMI ...
0
votes
1answer
678 views

How to create Docker Image based on EC2 AMI image?

I installed several things on my CentOS EC2 instance (Java, MySql, gradle, setup local application...). Also recently created EC2 AMI image out of all that. Is it possible to create a Docker image ...
0
votes
0answers
265 views

RDP Session from Windows 10 into Ubuntu creates different user sessions on Ubuntu machine when new user log in

I have an EC2 instance running Ubuntu with a GUI. I am able to connect to it with standard RDP (remote desktop connection). However, When a second user logins concurrently with same user credentials, ...
1
vote
1answer
1k views

Cannot ping EC2 instance. Inbound rules set

I've read several threads but can not find a solution to following problem: I have just set up a new instance of an EC2 server running Windows Server 20xx. I have set up an inbound rule for this ...
0
votes
0answers
85 views

Not able to update pip version in ec2 instance via ssh

When i'm trying to upgrade pip version ec2 instance via ssh, i'm getting error like this During handling of the above exception, another exception occurred: Traceback (most recent call last): File ...
4
votes
1answer
75 views

Can you recover ~/.ssh contents on AWS EC2 with an open session and keys?

I am using AWS EC2 with Ubuntu. I accidentally deleted the contents of ~/.ssh but still have my session open and still have my .pem and public keys backed up on my PC. Is there a way to recover my ~/...
0
votes
0answers
42 views

Create ami on amazon from Linode vps

Is there a way to migrate my linode ubuntu 14.04 server to ec2 instance on amazon? or make it as ami to create ec2 instance from it? I read some articles on amazon about migration from vm ...
-2
votes
1answer
381 views

SSH from one EC2 instance to another EC2

I am working on a test project that has EC2 instance (Controller) SSH to other EC2 instances (nodes). I would like to SSH to be able to login as EC2-user@xxx.xxx.xxx.xxx to the nodes, from the ...
0
votes
2answers
384 views

Run Firefox on Linux RHEL 6.9

After days of searching and many attempts to instal/run firefox on Linux EC2, I have the following steps: 1. Install Xvfb: yum install libXdmcp yum install libxshmfence yum install xorg-x11-server-...
0
votes
2answers
57 views

How to join to the domain, without changing the DNS settings

I have my Samba4 setup in the EC2 & I can join the windows clients fine, if I assign my instance public IP as the DNS server. But my requirement is, irrespective of any DNS IP assigned to the ...
1
vote
1answer
310 views

Unable to connect to SFTP after changing file permissions of /home folder

We have ubuntu instance on amazon and due to some reasons, we have changed the permissions of folder /home to 777. Command : sudo chmod -R 777 /home and now we are unable to connect to SFTP or via ...
0
votes
2answers
81 views

Detached a volume from an instance - what now?

I had an Amazon EC2 instance with EBS only disk - 8 GB disk. I needed some more space so I increased the volume to 320 GB. Then, I no longer needed all that space so I wanted to decrease the volume, ...
1
vote
0answers
164 views

AWS EC2 connection timeout

I have an Ubuntu 16.04 host on EC2 that becomes unreachable every time I forget to close ssh connection with exit command. Here are the things I have checked: Port 22 is open (obviously since this ...
-1
votes
1answer
85 views

Command Line Asking for Key Password when SSH into EC2

I've never had a problem using SSH to access AWS EC2 instances and usually don't even need to include the key pair. In this example my EC2 instance is in a Custom VPC yet also in a public subnet with ...
0
votes
0answers
265 views

adding rule to firewall of linux on amazon ec2 linux

On Linux 4.9.27-14.33.amzn1.x86_64 #1 x86_64 x86_64 x86_64 GNU/Linux Iptables got following enteries for Docker chain: Chain DOCKER (2 references) target prot opt source ...
0
votes
1answer
71 views

How to set or change the 2.2 GiB size of AWS instance-store backed root volume?

I've just launched an AWS EC2 r3.large instance with Ubuntu. r3.large has 32GB SSD for instance store with it. My problem is that the size of the root volumne /dev/xvda is too small and I can't find ...