As of May 31, 2023, we have updated our Code of Conduct.

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
0 answers
14 views

I install ffmpeg in the aws EC2 environment and convert the audio wav file to m4a, but I'm having trouble with loud noise

I install ffmpeg in the aws EC2 environment and convert the audio wav file to m4a, but I'm having trouble with loud noise I don't know how to set parameters without noise The ffmpeg version is ffmpeg-...
原田静男's user avatar
1 vote
0 answers
11 views

AWS Windows EC2 File Transfer - Need to keep session open

I have a rather large file that I need to copy from an S3 bucket to a Windows EC2 and it will not complete before a session ends. I have found lots of suggestions for this for Linux but not Windows. ...
kcjelv178's user avatar
0 votes
0 answers
34 views

AWS EC2 mac1 instance cannot connect to iCloud or App Store

My team is looking into utilizing MacOS EC2 build agents for our iOS builds. I set up the instance as described in the AWS documentation. The x86 instance (mac1) doesn't seem to be able to install ...
Derek Kim's user avatar
0 votes
1 answer
134 views

SSH to AWS EC2 instance hangs

I was able to log in to my ec2 instance via ssh few days ago. But somehow today when I connected it with ssh -i something.pem ubuntu@ip_address -v then the terminal hung on this line: debug1: Local ...
zxcisnoias's user avatar
1 vote
1 answer
63 views

How to launch process through SSM command as a non-background process?

I want to launch Google Chrome (chrome.exe) on my AWS EC2 server using the SSM Api for launching Powershell commands. I run the powershell command through the C# SSM API: ...
Hasse Andersen's user avatar
0 votes
1 answer
153 views

systemctl start service command is not working in userdata of ec2

I am trying to run systemctl service in ec2 instance on launching of ec2 instance. So for to run my script on start of ec2 instance i am running my script using user data of ec2 instance. So my script ...
dhruv mehta's user avatar
0 votes
0 answers
35 views

Can the Windows built-in VPN server be used in EC2?

I have a Windows Server 2019 VM in AWS EC2. I'd like to have a VPN server on it so I can connect to it from my dev machine and run a non-secure protocol across it. I've got the PPP RAS adapter ...
Kevin Donn's user avatar
0 votes
0 answers
113 views

Can't access my AWS EC2 instance with Elastic IP address

I am currently using an AWS EC2 instance (Ubuntu 20.04) which is Launched in a public subnet Associated with a security group which allows all traffic.(both inbound and outbound) The NACL associated ...
Alakananda S's user avatar
0 votes
1 answer
47 views

I cant start apache with my Public IP address in Listen Configuration

I am currently using AWS Ec2 ubuntu (20.04) instance. I have installed apache2 and configuring the Listen directive for apache. But, i cant give the public IP address of my Ec2 instance in "...
Alakananda S's user avatar
0 votes
0 answers
91 views

AWS EC2 SSH connection disconnects and won't reconnect without restarting instance

After a period of inactivity, my ec2 instance's SSH connection disconnects and it throws connection timed-out errors on every subsequent SSH connection request. The only way to reconnect is by ...
Pranav's user avatar
  • 1
0 votes
0 answers
96 views

AWS SES Access Key and Secret keeps getting used by spammers

I have a Laravel application running on an Amazon EC2. I also use SES to send out my emails. I keep my AWS Access Key and Secret inside my .env file, stored on the app level I have configured an IAM ...
farjam's user avatar
  • 101
1 vote
1 answer
70 views

How to create an EC2 instance from .tar.gz?

Suppose I have a .tar.gz file with a Linux filesystem. How to create an AWS EC2 Compute Instance from this file? Actually, I want to move a server from Lightsail to EC2. Maybe, instead use rsync or ...
porton's user avatar
  • 301
0 votes
0 answers
113 views

finding chromedriver, glibc version compatibility

I'm trying to set up a webscraper in an amazon-linux terminal and I'm having issues with chromedriver glibc compatibility. I'm currently using chrome and chromedriver version ~108. So I decided to try ...
tgm_learn's user avatar
1 vote
0 answers
27 views

Connect to an image of an Amazon EC2 instance without SSH

I have an amazon EC2 instance (redhat 8.6) I can create an image of that instance using the process described here: https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html , with the ...
justadev's user avatar
  • 137
1 vote
1 answer
106 views

Apps from the Apple App Store won't install on a macOS Mac mini EC2 instance

I am running a macOS Mac mini EC2 instance. I have an apple ID and went to the app store and tried to download a free app but it does not actually install. It just shows it loading forever without ...
CarP24's user avatar
  • 11
0 votes
0 answers
3k views

FileZilla Fails When Attempting SFTP Connection that Aren't KeyFile-based Connections

Having worked for years and successfully connecting to Amazon EC2 instances via a local Ubuntu 20.04 environment, I've recently switched to Windows 11 Pro. When trying to connect to Amazon EC2 ...
Jonathan LeRoux's user avatar
0 votes
1 answer
468 views

Access shared folder in local machine from EC2 instance

My company uses a windows server machine with some shared folders with files accessed by many pieces of code. Now I'll need to use several of those code files in an AWS EC2 machine that also runs ...
Mefitico's user avatar
  • 113
0 votes
0 answers
20 views

Scheduled tasks not running after EC2 machine is turned on

I have an EC2 machine with windows server which is meant to run basically during working hours, so it gets turned off during night time. I have a few scheduled tasks that would run in the morning, but ...
Mefitico's user avatar
  • 113
1 vote
1 answer
70 views

Persisting data for amazon ec2 instance running postgres

I am provisioning a cheap postgres instance for myself by installing directly on amazon ec2. Everything will be deployed using terraform. I would like the database data to persist between restarts / ...
yen's user avatar
  • 111
0 votes
1 answer
134 views

Terraform setup of postgres conf files (pg_hba_conf + postgresql.conf) via User Data on AWS ec2 instance

I am setting up a cheap postgres server on amazon ec2, using Terraform. I know I can add a User Data file when setting up a ec2 instance. I know that with terraform, I can provide that User Data ...
yen's user avatar
  • 111
0 votes
0 answers
82 views

Tomcat failed to install after running script through user data of Ubuntu EC2 instance on AWS

This is the script I added to the user data: #!/bin/bash sudo apt update sudo apt upgrade -y sudo apt install openjdk-11-jdk -y sudo apt install tomcat10 tomcat10-admin tomcat10-docs tomcat10-common ...
codestein's user avatar
0 votes
0 answers
25 views

AWS bastion host to ec2 instance. SSH forwarding is not working

At AWS cloud platform, I provisioned a bastion host and ec2 instances. I would like to login to ec2 instances from the bastion host using ssh agent forwarding. It is not working. Here is what I've ...
Gary's user avatar
  • 11
0 votes
0 answers
26 views

Problems with connection refused setting up ssh tunnel to aws ec2 instance [duplicate]

I'm trying to set up a raspberry pi to run on my desk and I'd like to remote into it from elsewhere via a tunnel. To do this I've setup an EC-2 instance that I'll use similar to ngrok to create ...
iggy12345's user avatar
  • 101
0 votes
1 answer
363 views

Amazon EC2 how to close or recover a serial console session?

The relatively new serial console for EC2 servers is such a great relief. But I just ran into an issue where I closed the tab that had the console connection running. And when I wanted to get back to ...
Gunther Schadow's user avatar
0 votes
0 answers
35 views

AWS EC2 SSH authentication keys

I am trying to understand how AWS EC2 uses key pair(s) for SSH authentication. I think a large part of my confusion is that it looks as if 2 pairs of keys are involved although that seems inconsistent ...
user3425506's user avatar
0 votes
0 answers
425 views

425 Failed to establish connection. Error EElFTPSError: Invalid server reply

I'm trying to configure a ftp server on a EC2 instance (Amazon Linux 2 AMI). I followed some steps I found online but I getting the following error message: FTP login with username rcmv2 <<&...
rcmv's user avatar
  • 11
1 vote
2 answers
243 views

ClientError: ENA must be supported with uefi boot-mode

I am trying to run a Windows 10 Home VM in Amazon EC2. The plan is to run it in EC2 for about two days, our partner will access it through RDP and then I will transfer it back to VirtualBox. I ...
Míla Mrvík's user avatar
1 vote
1 answer
401 views

When is a new SSH host key generated?

I copied an EC2 instance from an AMI image and brought it back up. After that I had to remove the entry in my known_hosts file because the SSH host key fingerprint changed. However, I thought that the ...
AllRandomAllMid's user avatar
0 votes
2 answers
2k views

How do I auto-renew a manual Certbot cert?

I manually set up a Certbot cert on an EC2 instance so that I could set up a wildcard cert. Specifically, I used the following command (with the real domain, not example.com) to set up the manual ...
HartleySan's user avatar
0 votes
0 answers
95 views

Cannot Ping Primary interface after configuring second INT on AWS

I have an Amazon EC2 Instance running Ubuntu server 16.04 I want the EC2 to have two network interfaces. After configuring the secondary interface. I cannot ping my primary interface from my other ...
beardbro's user avatar
0 votes
2 answers
190 views

How to configure an IPv6 tunnel on AWS?

I'm running openvpn on a dual-stack AWS EC2 instance (Ubuntu 18) in an AWS VPC. Connecting to the VPN software and tunneling IPv6 seems to work fine; I can bring up a VPN link and ping6 around the VPN ...
Brent Baccala's user avatar
0 votes
0 answers
133 views

AWS EC2 windows - secure encryption at rest with password at boot

I'm looking for a way to use encryption at rest at aws for windows instances, but I want the instance to be protected from a hacked admin account (although unlikely due to 2fa) or aws itself (yes, ...
Catscrash's user avatar
1 vote
0 answers
2k views

Yum update Could not contact any CDS load balancers Amazon EC2

In my scenario , for some reason yum has stopped working in my Amazon EC2 instance, located in the us east -1 region. There seems to be something wrong with the path of the repo metadata, is this ...
samtech's user avatar
  • 11
1 vote
1 answer
2k views

bitcoin-cli testnet : Could not connect to the server 127.0.0.1:8332

I've installed bitcoin-cli from here I run the bitcoin core on Ubuntu 20.04 (AWS EC2). mac-os also experiences similar problems. Ubuntu 20.04 screen capture for the error messages The commands I've ...
Albert Tsang SHSI's user avatar
0 votes
1 answer
246 views

AWS Linux Stuck due to screen command - blank screen - how to get out

I am using AWS Linux (Amazon Linux 2 AMI) and I am totally stuck after using the basic "screen" command. I was following an installation guide and one of the steps was to use just the ...
Rebelde2's user avatar
0 votes
0 answers
131 views

How to close or recover a hanging connection to amazon-ec2

I was using aws cli to connect to an EC2 instance. I had network issues and the connection broke. I was left with a hanging connection, both on my side (the cli wouldn't take any keystroke) and on the ...
Roberto Morávia's user avatar
0 votes
1 answer
408 views

Can't detach security group from ENI and remove VPC

I created a Cloud Formation stack for Kubernetes cluster and then deleted it and noticed that the VPC and ENI were left undeleted so wanted to remove the VPC but it wouldn't let me because an ENI is ...
jedi's user avatar
  • 141
1 vote
0 answers
350 views

Trying to connect to AWS EC2 instance and getting session denied (publickey)?

I use Windows 10 and can do this successfully in PowerShell: ssh -i "bla.pem" ubuntu@blabla.eu-west-2.compute.amazonaws.com However, when I try to do this in VSC Remote Explorer I get: [17:...
cs0815's user avatar
  • 155
0 votes
2 answers
688 views

Unable to ssh into ec2 instance with .pem keypair

I created a new temporary ec2 instance (using a snapshot of my original ec2 instance) ang generated a mykeypair.pem file to use as a keypair that I hoped would allow me to connect to my virtual ...
johndisk's user avatar
  • 103
1 vote
0 answers
148 views

Not able to ping AWS ec2 IPv6 address

i have t3.small EC2 instance i have associated ipv6 address to it but not able to ping the address . 1.able to ping IPv4 of same instance 2.for reference i have used - https://docs.aws.amazon.com/vpc/...
krishna's user avatar
  • 11
1 vote
1 answer
901 views

"unable to open file" when trying to use PPK key file converted from EC2 PEM key

Unable to connect to EC2 from Linux mint 20. Screen shots for the steps followed attached In PuTTY I followed the steps step 1 : to convert from .pek to .ppk I followed the link pek-ppk sudo puttygen ...
subhashis's user avatar
  • 113
-2 votes
1 answer
224 views

Jenkins is not opening in browser only in my laptop? [closed]

From two days I am facing this problem. Till 2 days before Jenkins.... worked without any error in my laptop. My Jenkins server is in AWS EC2 (Amazon Linux). All my deployments are also there in ...
Mani Gopal's user avatar
0 votes
1 answer
173 views

Wants to run two webserver on tomcat at port 8080 and 7070 without opening this port in security group of EC2

I am running two webserver on tomcat version 9 using port 8080 and 7070 on same EC2 . 1st tomcat : <Connector port="7070" protocol="HTTP/1.1" connectionTimeout=&...
Rashmi Pandey's user avatar
1 vote
3 answers
1k views

how to clean up /root folder in EC2 linux

One of my AWS EC2 Instance is occupying over 222 GB. But surprisingly when I check inside the /root folder, I just found one file which is of 5MB in size. I am not sure how to clear the disk space and ...
Tarique's user avatar
  • 11
1 vote
1 answer
358 views

Given a virtual disk, get the pool it belongs to

I have this monstrosity: Get-Volume | ForEach-Object { $VolObj = $_ $ParObj = Get-Partition | Where-Object { $_.AccessPaths -contains $VolObj.Path } $DiskObj = Get-Disk | Where-Object { $_....
DeepSpace's user avatar
  • 117
0 votes
1 answer
86 views

SSH into AWS EC2 without copy/pasting DNS each time

Following generation of a PEM file, and starting the instance, logging in requires copying the public DNS each time you wish to SSH in (as shown in AWS docs): ssh -i /path/my-key-pair.pem my-instance-...
Thomas Matthew's user avatar
0 votes
1 answer
255 views

Enabling HTTPS on EC2 Instance

I have an elastic public IP for my EC2 instance. I have an Nginx server running on it (and nodejs as a backend server). I'd like to enable HTTPS access to my server. My questions: Can I create an SSL ...
Sid's user avatar
  • 1
0 votes
1 answer
44 views

How do I expose my dockerized container outside of my EC2 instance?

How do I expose my docker container from outside of my EC2 instance? version: '3.1' services: php: image: leonard/${CPROJECT}.php:tg1 build: context: . dockerfile: './docker/php/Dockerfile' ...
Sayaman's user avatar
  • 201
1 vote
1 answer
256 views

Is there a way of adding an Amazon EC2 Instance onto Finder?

Hey is it possible to virtually mount an EC2 Instance in finder? I'm trying to eliminate the use of an external SFTP client (I use Terminus at the moment) and I was wondering if it was possible if I ...
SpaceTurtle0's user avatar
2 votes
2 answers
5k views

Malicious request in log

I am receiving malicious request therefore i seek your help i log page urls visited and some of them are like http://example.com/?a=fetch&content=<php>die(@md5(HelloThinkCMF))</php> ...
aryanknp's user avatar
  • 123

1
2 3 4 5
14