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
0
votes
0answers
23 views

AWS EC2 - Network error: connection timed out

I am not able to SSH into my server. I am using a Linux instance and read AWS's guide for how to troubleshoot and have not had any luck. I am using Putty to SSH What have I done? Checked my inbound ...
0
votes
0answers
9 views

AWS EC2 - identify the region of AMI [closed]

Given an AMI Image ID, how can I find out its region? The idea is for my application to present a list of all privately shared AMIs matching some filter criteria. The user chooses an image, then it ...
-1
votes
0answers
7 views

List Ec2 instances created by AWS user [closed]

I have an AWS account, in which i have created an OU (Organizational Unit) & we have created many users inside this OU. Now we would like to list the instances, created by these users. If you ...
2
votes
1answer
35 views

Windows SSH: Can't ssh into ec2 account: Permissions for 'key.pem' are too open. Can't delete permissions for “ALL APPLICATION PACKAGES”

The IP in the following picture is replaced with xs for security purposes ssh -i key.pem ec2-user@xxx.xxx.xxx.xxx @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: ...
1
vote
0answers
21 views

AWS ec2 instance with Multi user login with ssh key not work

I have a server(ubuntu16.04) in aws ec2. And I have a private key to access the server. The origin user I used called ubuntu which is generated by aws. Now my client B wants to login server to ...
1
vote
0answers
26 views

curl ftp: Cannot connect on aws instance

When I try to download a file via curl/ftp while on an AWS box, it just hangs: $ curl -vvvvv -4 --ftp-pasv ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt * Trying 205.167.25.101:21.....
0
votes
0answers
20 views

Remote headless web browser?

Is there such a thing as a remote, headless web browser? I'm running a free instance of EC2, which simply won't the graphical interface (I tried Ubuntu with some lightweight window server and was ...
-1
votes
1answer
16 views

Unable to connect to ec2 instance using putty

I am connecting to the ec2 instance Amazon Linux AMI via putty and getting the error Server Refused our key Please provide a solution for this
0
votes
0answers
9 views

Is there a purpose of assigning a Public IP to EC2 instance in a private subnet?

I'm not new to AWS and I understand all the core stuff. VPCs, public and private subnetting, etc. However, I was wondering if there was any application, if any, of applying a public IP address to an ...
0
votes
0answers
8 views

EC2 Instance gateway change automatically

Somme of my instances are deployed with code into its /etc/rc.local #!/bin/sh # Managed by puppet - do not modify /sbin/route del default /sbin/route add default gw 11.0.0.254 All works fine at the ...
1
vote
0answers
15 views

How to reliably get block device name for EC2 instance store?

Running CentOS on an AWS EC2 instance, I want to make a startup script that formats and mounts the NVMe instance store. So far, every time I reboot, the EBS boot drive is /dev/nvme0n1 and the ...
0
votes
0answers
3 views

Audio over RDP or TeamViewerr

I have a windows server instance on AWS and am able to hear audio over RDP. I'm new to Linux and can't figure how to hear audio over RDP or TeamViewer from a Linux Ubuntu lxde instance. Thank you ...
0
votes
0answers
53 views

Cannot able to Connect to AWS EC2 Instance with Putty on Windows

Hello Everyone I cannot able to reconnect to AWS-ec2(ubuntu) instance with putty on windows previously it has connected perfectly but when I installed Nginx Server, PHP and composer after this It ...
1
vote
0answers
22 views

Why BlockDeviceMapping does not create UUID?

In Linux machines, block devices have UUID Below is the CloudFormation template: "BlockDeviceMappings": [ { "DeviceName" : "/dev/sdf", "Ebs" : { ...
0
votes
1answer
48 views

Get sub domain on AWS by IP address

I have AWS Route53 zone hosted for my domain xxx.com. Inside I have A record that maps sub.xxx.com to my server IP 1.2.3.4 How can I find the sub.xxx.com value by just passing the IP? I tried ...
1
vote
0answers
44 views

Launch multiple RStudio sessions from Docker on EC2

I managed to install RStudio through Docker, running on port 8787 on my EC2 instance. I wanted to add another RStudio session (not necessarily sharing the same volumes), so I tried the following: ...
1
vote
1answer
545 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 ...
0
votes
0answers
922 views

'chmod' shows error: “chmod' is not recognized as an internal or external command, operable program or batch file.”

I'm trying to connect to an instance (or something like that) using aws's ec2 thing. I had to change the permissions of a .pem file with the command 'chmod 400 grabage' it throws an error (chmod' is ...
0
votes
0answers
14 views

ebextensions no longer running on deploy or reboot under Ubuntu

I'm not super conversant in AWS, but know just enough to get myself into trouble... I have a handful of .ebextensions configs that used to work (for a couple years) but appear to have stopped working ...
-1
votes
1answer
35 views

Run Multiple AWS EC2 Instances Simultaneously [closed]

I wish to launch multiple Amazon Web Service EC2 instances simultaneously. For example, I hope to run 1000 models on one instance and a separate 1000 models on a second instance. When I click ...
0
votes
3answers
44 views

How does VPC relate to EC2 in AWS?

How to explain to a complete beginner about the relationship between EC2 and VPC? I've recently encountered this problem when viewing a online Udemy course. It has an episode instructing the viewers ...
0
votes
1answer
33 views

EC2 instance has stopped responding

hI I have been running some simulation using python script on EC2 which was running fine until I increased the number of simulation and now it has completely stopped responding. I am using this for ...
0
votes
0answers
48 views

Need to resolve phpmyadmin dependency issue on Amazon linux running nginx

I have an EC2 instance. I am unable to install phpMyAdmin successfully due to Amazon vs Red Hat dependency differences(I believe). Error: Package: php-tidy-7.2.26-1.el7.remi.x86_64 (remi-php72) ...
1
vote
0answers
69 views

Which key is in use when ssh logging into my EC2 instance?

After a ssh-keyscan I opened my generated known_hosts file, and found that there are 3 instead of 1 key for my EC2 instance. **.**.**.** ssh-rsa ****** **.**.**.** ecdsa-sha2-nistp256 *** **.**.**.** ...
-1
votes
1answer
23 views

Disconnecting PuTTY with Amazon Web Services EC2

I am using PuTTY to submit a bash file to Amazon Web Services EC2 to run R files. The cursor in PuTTY disappears when I submit the bash file and does not reappear until all of the R files have ...
0
votes
1answer
65 views

Install PHP 5.5 on Amazon Linux 2

I want to use the AWS PHP SDK on Amazon Linux 2. I thought this should be easy. I've enabled the epel repo which has php-aws-sdk version 2.8.31. But the developer guide recommends version 3. SDK ...
1
vote
0answers
59 views

Why Does Telnet Succeed If No Route Back To Host That Initiates It

Machine A could not make a https connection to Machine B. I first used telnet to confirm a tcp connection could be made: telnet MachineB 443 This worked. So, I concluded that the network between ...
0
votes
1answer
80 views

How to fix the CUDA out of memory error on EC2 instance while running inference pipeline?

I am trying to run a complete inference pipeline which takes a number of images and first runs Object Detection (multiprocessing) and further runs a Classifier (multiprocessing). I have tested the ...
0
votes
0answers
14 views

I cannot access EC2 443 port from outside through public ip

I created two EC2 VMs on Amazone cloud, and have public IPs for each VM. However I cannot access 443 port from outside through public IP of EC2 VM. The following case is okay. on one EC2 VM (VM1): "...
0
votes
1answer
100 views

Unprotected Private Key File

I have an Amazon EC2 instance that I have been using to learn networking concepts on, today I tried to connect via SSH and was prompted with the following error. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
0
votes
0answers
135 views

port forwarding in docker container in AWS EC2 linux machine

I'm a newbie and needing help. Currently playing with the following setup: remote machine an AWS EC2 instance with Ubuntu 18. I am trying to access Jupyter notebook running in Docker container in ...
0
votes
0answers
3 views

Set PHP to run shell commands piping in parameters from URL - AWS EC2 (Ubuntu)

How does one set up PHP to run shell commands with parameters from URL? For example http://ipaddress.com/endpoint triggers the Ubuntu command For example http://ipaddress.com/endpoint/?parameters=...
0
votes
1answer
12 views

AWS ec2 ubuntu - run command from calling a web endpoint

How do you run a particular command using an AWS EC2 Ubuntu instance - from a web endpoint? For example http://ipaddress.com/endpoint triggers the Ubuntu command For example http://ipaddress.com/...
0
votes
0answers
25 views

Permission denied to remove releases folder of CI/CD in Ubuntu EC2

I have a CI/CD in GitLab in an EC2 with Ubuntu 18.04. The directory where the folders current and releases are placed is /home/ubuntu/airflow_ci. Every time I push a new version from my computer I ...
1
vote
1answer
222 views

Postfix issue on Ubuntu (Amazon EC2): can not send email after a few success

I installed Posifx on Ubuntu 18.4 LT on an amazon EC2 box. After installation and configuration, I was able to send out two emails to my hotmail and another email account. I do received them. However, ...
0
votes
1answer
27 views

AWS EC2 Instance “On Demand” - vCPU-based On-Demand Instance - does that mean pay only when used?

I'm new to EC2 (and come from having used dedicated servers). I'm trying to understand how it's priced with the new transition to their "vCPU-based On-Demand Instance". Does this mean that you don't ...
1
vote
1answer
59 views

how to fix broken fstab that causes / read-only on remote VM?

I broke my fstab by a multi line paste of commands on an AWS ec2. by some sort of miracle, the os still boots. output of mount: ec2-user@host:~ $ mount sysfs on /sys type sysfs (rw,nosuid,nodev,...
1
vote
1answer
17 views

Amazon Route53 Record set doesn't work as intended

I have an hosted zone which contains a record set list. I encountered a problem after I made some modifications with my running instances which I can't remember exactly. My Record Set List ; www1....
0
votes
0answers
13 views

Does anyone know how to see the domain instead oif the amazon linux test page

I have installed the WordPress and lamp server to the c2 instance and put the wordpress to the appropriate /var/www/html folder but when from within my wordpress backed "visit site" which can only be ...
0
votes
1answer
179 views

AWS EC2 Ubuntu 18.04 LTS and export $DISPLAY to run graphical application

If I SSH into a Raspberry Pi or into a local VM running Ubuntu 18.04 LTS, then I can run: user:~$ export DISPLAY=:0 user:~$ gedit And this will open a graphical window on the OS with the text editor,...
1
vote
1answer
36 views

FTP connection error in EC2 instance with secondary EIP

Recently I have launched an EC2 instance with WHM-cPanel. I have associated 5 EIP to the instance and assigned them for 5 different site in WHM panel. Sites are running good but connecting via FTP ...
1
vote
0answers
25 views

How to point a subdomain to run applications using virtualenv on ec2 (AWS)

I added an ec2 instance (ubuntu server) in aws, installed python3.7, virtualenvs, pointed ec2's elastic ip to a subdomain, entered virtualenvs and made a webapp to run the web application. How do I ...
1
vote
1answer
3k views

Unable to find or install amazon-linux-extras

I am trying to install nginx on AWS EC2 instance. As this is done using amazon-linux-extras as per AWS documentation, I tried that. But I am unable to find the package or install it using yum install(...
0
votes
0answers
156 views

AWS Instance Created from Snapshot Failing “Instance reachability check”

I have a dev environment hosted by AWS (t2.large, RHEL 7.4) that is backed up with a snapshot every couple of hours. Today, I tried to create a new instance from one of those snapshots to run some ...
1
vote
0answers
191 views

“cannot execute binary file” on aws ec2 with sage (using python) shell

I would like to use SageMath (using Python) on a AWS EC2 server. When I tried the SageMath console interface I got the following error: /opt/sagemath-8.8/local/bin/python: /opt/sagemath-8.8/local/...
0
votes
1answer
62 views

Yum update file Error

[root@ ec2-user]# yum update file* Loaded plugins: fastestmirror, priorities, update-motd, upgrade-helper Loading mirror speeds from cached hostfile * amzn-main: packages.us-east-1.amazonaws.com * ...
0
votes
2answers
75 views

AWS Cloned EC2 Instance Rerouting to Original Instance

I have an EC2 instance running OpenEMR Cloud Express 5.0.1 attached to an Elastic IP address and with a domain name associated with it. I recently cloned the instance using Action -> Create Image, ...
0
votes
1answer
143 views

How do I set custom response headers from an EC2 ALB?

I am finding it hard to get info on how to set custom response headers from an Amazon ALB. Is this possible?
0
votes
1answer
17 views

Setup an ALB to re-route to a different target group if all checks are failing

We are trying to put up a maintenance webpage for our customers, when our application is down for whatever reason. Say we have an Application Load Balancer on AWS. How do we setup an ALB to re-route ...
0
votes
0answers
290 views

Cannot find out what consumes my disk space in AWS

I use a free tier ec2 instance in amazon aws. I run a nodejs server with mongodb, and the server has a memory and cpu intensive job. df -h shows that I consumed 18G of 20G disk. Filesystem ...

1
2 3 4 5
13